Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
Md. Ariful Hoque
Roll: MSC 140202
Khulna University
 Introduction.
 Decision Tree Terms.
 Example.
 Constructing A decision Tree.
 Calculation Of Entropy.
 Information Gain.
 Gini Impurity.
 Termination Criteria.
 Mathlab Example.
 Implementations.
 Advantage
 Limitation
 Conclusion
 Decision tree learning is the construction of a decision tree from class-
labeled training tuples.
 A decision tree is model of decisions and their possible consequences.
 It Includes chance event outcomes, resource costs, and utility.
 Its follow top down approach.
 Decision trees classify instances by sorting them down the tree from the
root to some leaf node, which provides the classification of the instance
Root Node
Condition Check
Leaf Node(Decision Point)
Leaf Node(Decision Point)
Condition Check
Yes
Color = Green ?
Size = Big ? Color = Yellow ?
Size =medium?Watermelon
Apple Grape
Shape = Round? Size = Small ?
Taste = sweet? Apple
Yes No
Yes No
Cherry Grape
Size = Big?
Grape Lemon
Banana
Yes
YesYes
Yes
Yes
No
No
No
No
No
There are many specific decision-tree algorithms-
 ID3
 C4.5
 CART
 CHAID
 MARS
 Which attribute to choose?
◦ Information Gain
 ENTROPY
 Where to stop?
◦ Termination criteria
 Different algorithms use different metrics for measuring best.
 These generally measure the homogeneity of the target variable within
the subsets.
 Some examples are given in the next slides.
◦ Entropy is a measure of uncertainty in the data
Entropy(S) = ∑(i=1 to l)-|Si|/|S| * log2(|Si|/|S|)
 S = set of examples
 Si = subset of S with value vi under the target attribute
 l = size of the range of the target attribute
 Used by the ID3, C4.5 and C5.0 tree-generation algorithms.
 Information gain is based on the concept of entropy from information
theory.
Here , fi = fraction of items
m = Items
 Used by the CART (classification and regression tree).
 It measure incorrectly labeled of randomly chosen element.
 Gini impurity can be computed by summing the probability of each item
being chosen times the probability of a mistake in categorizing that item.
 It reaches its minimum (zero) when all cases in the node fall into a single
target category.
 To compute Gini impurity for a set of items, suppose-
 Let f be the fraction of items labeled with value i in the set.
 All the records at the node belong to one class
 A significant majority fraction of records belong to a single class
 The segment contains only one or very small number of records
 The improvement is not substantial enough to warrant making the split.
 Create a classification decision tree for Fisher's iris data:
 load fisheriris;
 t = classregtree(meas,species,...
 'names',{'SL' 'SW' 'PL' 'PW'})
 view(t)
 t =
 Decision tree for classification
 if PL<2.45 then node 2 elseif PL>=2.45 then node 3 else setosa
 class = setosa
 if PW<1.75 then node 4 elseif PW>=1.75 then node 5 else versicolor
 if PL<4.95 then node 6 elseif PL>=4.95 then node 7 else versicolor
 class = virginica
 if PW<1.65 then node 8 elseif PW>=1.65 then node 9 else versicolor
 class = virginica
 class = versicolor
 class = virginica
Decision Tree Learning
 In data mining software.
 Several examples include Salford Systems CART, IBM SPSS , KNIME,
Microsoft SQL Server, and scikit-learn.
 Decision-tree learners can create over-complex trees.
 There are concepts that are hard to learn because decision trees do not
express them easily, such as XOR, parity or multiplexer problems.
 When there are more records and very less number of attributes/features.
 Simple to understand and interpret.
 Requires little data preparation.
 Able to handle both numerical and categorical data.
 Performs well with large datasets.
 Decision tree learning is one of the predictive modeling approaches used
in statistics, data mining and machine learning.
 In our example section we saw a classification tree.
 Where the target variable can take a finite set of values.
 In Mathlab example section we saw regression trees.
 Where the target variable can take continuous values (typically real
numbers).
1. Decision tree learning[Online].
Available:http://en.wikipedia.org/wiki/Decision_tree_learning
2. Classregtree[Online].
Available:http://www.mathworks.com/help/stats/classregtree.html
3. Richard O.Duda, Peter E. Hart, David G. Stok. Pattern Classification.
Second Edition
4. Breiman, L., J. Friedman, R. Olshen, and C. Stone. Classification and
Regression Trees. Boca Raton, FL: CRC Press, 1984.
Thanks

More Related Content

What's hot

Decision tree
Decision treeDecision tree
Decision tree
R A Akerkar
 
Understanding random forests
Understanding random forestsUnderstanding random forests
Understanding random forests
Marc Garcia
 
Naive Bayes Presentation
Naive Bayes PresentationNaive Bayes Presentation
Naive Bayes Presentation
Md. Enamul Haque Chowdhury
 
Classification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsClassification Based Machine Learning Algorithms
Classification Based Machine Learning Algorithms
Md. Main Uddin Rony
 
Decision tree
Decision treeDecision tree
Decision tree
Soujanya V
 
Decision Tree - C4.5&CART
Decision Tree - C4.5&CARTDecision Tree - C4.5&CART
Decision Tree - C4.5&CART
Xueping Peng
 
Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
Mohammad Junaid Khan
 
Support Vector machine
Support Vector machineSupport Vector machine
Support Vector machine
Anandha L Ranganathan
 
Data Preprocessing
Data PreprocessingData Preprocessing
Decision tree and random forest
Decision tree and random forestDecision tree and random forest
Decision tree and random forest
Lippo Group Digital
 
Support vector machines (svm)
Support vector machines (svm)Support vector machines (svm)
Support vector machines (svm)
Sharayu Patil
 
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Simplilearn
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
Atul Khanna
 
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Simplilearn
 
Support Vector Machines
Support Vector MachinesSupport Vector Machines
Support Vector Machines
nextlib
 
Supervised and unsupervised learning
Supervised and unsupervised learningSupervised and unsupervised learning
Supervised and unsupervised learning
Paras Kohli
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
CloudxLab
 
Machine Learning With Logistic Regression
Machine Learning  With Logistic RegressionMachine Learning  With Logistic Regression
Machine Learning With Logistic Regression
Knoldus Inc.
 
Data mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, dataData mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, data
Salah Amean
 
2.2 decision tree
2.2 decision tree2.2 decision tree
2.2 decision tree
Krish_ver2
 

What's hot (20)

Decision tree
Decision treeDecision tree
Decision tree
 
Understanding random forests
Understanding random forestsUnderstanding random forests
Understanding random forests
 
Naive Bayes Presentation
Naive Bayes PresentationNaive Bayes Presentation
Naive Bayes Presentation
 
Classification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsClassification Based Machine Learning Algorithms
Classification Based Machine Learning Algorithms
 
Decision tree
Decision treeDecision tree
Decision tree
 
Decision Tree - C4.5&CART
Decision Tree - C4.5&CARTDecision Tree - C4.5&CART
Decision Tree - C4.5&CART
 
Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
 
Support Vector machine
Support Vector machineSupport Vector machine
Support Vector machine
 
Data Preprocessing
Data PreprocessingData Preprocessing
Data Preprocessing
 
Decision tree and random forest
Decision tree and random forestDecision tree and random forest
Decision tree and random forest
 
Support vector machines (svm)
Support vector machines (svm)Support vector machines (svm)
Support vector machines (svm)
 
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
 
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
 
Support Vector Machines
Support Vector MachinesSupport Vector Machines
Support Vector Machines
 
Supervised and unsupervised learning
Supervised and unsupervised learningSupervised and unsupervised learning
Supervised and unsupervised learning
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
 
Machine Learning With Logistic Regression
Machine Learning  With Logistic RegressionMachine Learning  With Logistic Regression
Machine Learning With Logistic Regression
 
Data mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, dataData mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, data
 
2.2 decision tree
2.2 decision tree2.2 decision tree
2.2 decision tree
 

Viewers also liked

Decision tree
Decision treeDecision tree
Decision tree
Venkata Reddy Konasani
 
Decision tree
Decision treeDecision tree
Decision tree
Kalpna Sharma
 
Decision tree Using c4.5 Algorithm
Decision tree Using c4.5 AlgorithmDecision tree Using c4.5 Algorithm
Decision tree Using c4.5 Algorithm
Mohd. Noor Abdul Hamid
 
Decision trees for machine learning
Decision trees for machine learningDecision trees for machine learning
Decision trees for machine learning
Amr BARAKAT
 
Decision tree powerpoint presentation templates
Decision tree powerpoint presentation templatesDecision tree powerpoint presentation templates
Decision tree powerpoint presentation templates
SlideTeam.net
 
Decision tree example problem
Decision tree example problemDecision tree example problem
Decision tree example problem
SATYABRATA PRADHAN
 
Decision in Risk EVPI
Decision in Risk EVPIDecision in Risk EVPI
Decision in Risk EVPI
Javaid Toosy
 
Decision tree for Predictive Modeling
Decision tree for Predictive ModelingDecision tree for Predictive Modeling
Decision tree for Predictive Modeling
Edureka!
 
Decision Making and Risk Taking
Decision Making and Risk TakingDecision Making and Risk Taking
Decision Making and Risk Taking
Reina Mae Salido
 
Decision Tree- M.B.A -DecSci
Decision Tree- M.B.A -DecSciDecision Tree- M.B.A -DecSci
Decision Tree- M.B.A -DecSci
Lesly Lising
 
About sourcing: Decision Tree
About sourcing: Decision TreeAbout sourcing: Decision Tree
About sourcing: Decision Tree
Jean-Pierre van der Weerd
 
Data mining technique (decision tree)
Data mining technique (decision tree)Data mining technique (decision tree)
Data mining technique (decision tree)
Shweta Ghate
 
Graduate problem solving
Graduate problem solvingGraduate problem solving
Graduate problem solving
Paul Walsh
 
Machine Learning 3 - Decision Tree Learning
Machine Learning 3 - Decision Tree LearningMachine Learning 3 - Decision Tree Learning
Machine Learning 3 - Decision Tree Learning
butest
 
Decision tree
Decision treeDecision tree
Decision tree
Daksh Goyal
 
Decision Making Process a Practical Example
Decision Making Process a Practical ExampleDecision Making Process a Practical Example
Decision Making Process a Practical Example
Abid Siddiqui
 
Decision Tree Analysis
Decision Tree AnalysisDecision Tree Analysis
Decision Tree Analysis
Anand Arora
 
Decision tree
Decision treeDecision tree
Decision tree
Mukund Trivedi
 
Decision making process
Decision making processDecision making process
Decision making process
Farhad Zulfiqar
 
Decision theory
Decision theoryDecision theory
Decision theory
Aditya Mahagaonkar
 

Viewers also liked (20)

Decision tree
Decision treeDecision tree
Decision tree
 
Decision tree
Decision treeDecision tree
Decision tree
 
Decision tree Using c4.5 Algorithm
Decision tree Using c4.5 AlgorithmDecision tree Using c4.5 Algorithm
Decision tree Using c4.5 Algorithm
 
Decision trees for machine learning
Decision trees for machine learningDecision trees for machine learning
Decision trees for machine learning
 
Decision tree powerpoint presentation templates
Decision tree powerpoint presentation templatesDecision tree powerpoint presentation templates
Decision tree powerpoint presentation templates
 
Decision tree example problem
Decision tree example problemDecision tree example problem
Decision tree example problem
 
Decision in Risk EVPI
Decision in Risk EVPIDecision in Risk EVPI
Decision in Risk EVPI
 
Decision tree for Predictive Modeling
Decision tree for Predictive ModelingDecision tree for Predictive Modeling
Decision tree for Predictive Modeling
 
Decision Making and Risk Taking
Decision Making and Risk TakingDecision Making and Risk Taking
Decision Making and Risk Taking
 
Decision Tree- M.B.A -DecSci
Decision Tree- M.B.A -DecSciDecision Tree- M.B.A -DecSci
Decision Tree- M.B.A -DecSci
 
About sourcing: Decision Tree
About sourcing: Decision TreeAbout sourcing: Decision Tree
About sourcing: Decision Tree
 
Data mining technique (decision tree)
Data mining technique (decision tree)Data mining technique (decision tree)
Data mining technique (decision tree)
 
Graduate problem solving
Graduate problem solvingGraduate problem solving
Graduate problem solving
 
Machine Learning 3 - Decision Tree Learning
Machine Learning 3 - Decision Tree LearningMachine Learning 3 - Decision Tree Learning
Machine Learning 3 - Decision Tree Learning
 
Decision tree
Decision treeDecision tree
Decision tree
 
Decision Making Process a Practical Example
Decision Making Process a Practical ExampleDecision Making Process a Practical Example
Decision Making Process a Practical Example
 
Decision Tree Analysis
Decision Tree AnalysisDecision Tree Analysis
Decision Tree Analysis
 
Decision tree
Decision treeDecision tree
Decision tree
 
Decision making process
Decision making processDecision making process
Decision making process
 
Decision theory
Decision theoryDecision theory
Decision theory
 

Similar to Decision Tree Learning

Introduction to Data Mining
Introduction to Data MiningIntroduction to Data Mining
Introduction to Data Mining
Kai Koenig
 
Perfomance Comparison of Decsion Tree Algorithms to Findout the Reason for St...
Perfomance Comparison of Decsion Tree Algorithms to Findout the Reason for St...Perfomance Comparison of Decsion Tree Algorithms to Findout the Reason for St...
Perfomance Comparison of Decsion Tree Algorithms to Findout the Reason for St...
ijcnes
 
Machine learning session6(decision trees random forrest)
Machine learning   session6(decision trees random forrest)Machine learning   session6(decision trees random forrest)
Machine learning session6(decision trees random forrest)
Abhimanyu Dwivedi
 
Decision tree
Decision tree Decision tree
Decision tree
Learnbay Datascience
 
Dbm630 lecture06
Dbm630 lecture06Dbm630 lecture06
Classfication Basic.ppt
Classfication Basic.pptClassfication Basic.ppt
Classfication Basic.ppt
henonah
 
Classification
ClassificationClassification
Classification
Datamining Tools
 
Classification
ClassificationClassification
Classification
DataminingTools Inc
 
Data Mining Concepts and Techniques.ppt
Data Mining Concepts and Techniques.pptData Mining Concepts and Techniques.ppt
Data Mining Concepts and Techniques.ppt
Rvishnupriya2
 
Data Mining Concepts and Techniques.ppt
Data Mining Concepts and Techniques.pptData Mining Concepts and Techniques.ppt
Data Mining Concepts and Techniques.ppt
Rvishnupriya2
 
Classification (ML).ppt
Classification (ML).pptClassification (ML).ppt
Classification (ML).ppt
rajasamal1999
 
www1.cs.columbia.edu
www1.cs.columbia.eduwww1.cs.columbia.edu
www1.cs.columbia.edu
butest
 
Efficient classification of big data using vfdt (very fast decision tree)
Efficient classification of big data using vfdt (very fast decision tree)Efficient classification of big data using vfdt (very fast decision tree)
Efficient classification of big data using vfdt (very fast decision tree)
eSAT Journals
 
Data Mining In Market Research
Data Mining In Market ResearchData Mining In Market Research
Data Mining In Market Research
jim
 
Data Mining in Market Research
Data Mining in Market ResearchData Mining in Market Research
Data Mining in Market Research
butest
 
Data Mining In Market Research
Data Mining In Market ResearchData Mining In Market Research
Data Mining In Market Research
kevinlan
 
classification in data warehouse and mining
classification in data warehouse and miningclassification in data warehouse and mining
classification in data warehouse and mining
anjanasharma77573
 
Artificial intyelligence and machine learning introduction.pptx
Artificial intyelligence and machine learning introduction.pptxArtificial intyelligence and machine learning introduction.pptx
Artificial intyelligence and machine learning introduction.pptx
ChandrakalaV15
 
data mining.pptx
data mining.pptxdata mining.pptx
data mining.pptx
Kaviya452563
 
Slide3.ppt
Slide3.pptSlide3.ppt
Slide3.ppt
butest
 

Similar to Decision Tree Learning (20)

Introduction to Data Mining
Introduction to Data MiningIntroduction to Data Mining
Introduction to Data Mining
 
Perfomance Comparison of Decsion Tree Algorithms to Findout the Reason for St...
Perfomance Comparison of Decsion Tree Algorithms to Findout the Reason for St...Perfomance Comparison of Decsion Tree Algorithms to Findout the Reason for St...
Perfomance Comparison of Decsion Tree Algorithms to Findout the Reason for St...
 
Machine learning session6(decision trees random forrest)
Machine learning   session6(decision trees random forrest)Machine learning   session6(decision trees random forrest)
Machine learning session6(decision trees random forrest)
 
Decision tree
Decision tree Decision tree
Decision tree
 
Dbm630 lecture06
Dbm630 lecture06Dbm630 lecture06
Dbm630 lecture06
 
Classfication Basic.ppt
Classfication Basic.pptClassfication Basic.ppt
Classfication Basic.ppt
 
Classification
ClassificationClassification
Classification
 
Classification
ClassificationClassification
Classification
 
Data Mining Concepts and Techniques.ppt
Data Mining Concepts and Techniques.pptData Mining Concepts and Techniques.ppt
Data Mining Concepts and Techniques.ppt
 
Data Mining Concepts and Techniques.ppt
Data Mining Concepts and Techniques.pptData Mining Concepts and Techniques.ppt
Data Mining Concepts and Techniques.ppt
 
Classification (ML).ppt
Classification (ML).pptClassification (ML).ppt
Classification (ML).ppt
 
www1.cs.columbia.edu
www1.cs.columbia.eduwww1.cs.columbia.edu
www1.cs.columbia.edu
 
Efficient classification of big data using vfdt (very fast decision tree)
Efficient classification of big data using vfdt (very fast decision tree)Efficient classification of big data using vfdt (very fast decision tree)
Efficient classification of big data using vfdt (very fast decision tree)
 
Data Mining In Market Research
Data Mining In Market ResearchData Mining In Market Research
Data Mining In Market Research
 
Data Mining in Market Research
Data Mining in Market ResearchData Mining in Market Research
Data Mining in Market Research
 
Data Mining In Market Research
Data Mining In Market ResearchData Mining In Market Research
Data Mining In Market Research
 
classification in data warehouse and mining
classification in data warehouse and miningclassification in data warehouse and mining
classification in data warehouse and mining
 
Artificial intyelligence and machine learning introduction.pptx
Artificial intyelligence and machine learning introduction.pptxArtificial intyelligence and machine learning introduction.pptx
Artificial intyelligence and machine learning introduction.pptx
 
data mining.pptx
data mining.pptxdata mining.pptx
data mining.pptx
 
Slide3.ppt
Slide3.pptSlide3.ppt
Slide3.ppt
 

More from Md. Ariful Hoque

Automated Payment Gateway for small shops
Automated Payment Gateway for small shopsAutomated Payment Gateway for small shops
Automated Payment Gateway for small shops
Md. Ariful Hoque
 
µIP (micro IP)
µIP (micro IP)µIP (micro IP)
µIP (micro IP)
Md. Ariful Hoque
 
Poz Software
Poz SoftwarePoz Software
Poz Software
Md. Ariful Hoque
 
Show me
Show meShow me
EIMS software for schools
EIMS software for schoolsEIMS software for schools
EIMS software for schools
Md. Ariful Hoque
 
Cost effective arena active protection system
Cost effective arena active protection systemCost effective arena active protection system
Cost effective arena active protection system
Md. Ariful Hoque
 
Amazon ec2cluster
Amazon ec2clusterAmazon ec2cluster
Amazon ec2cluster
Md. Ariful Hoque
 
Implementation of RSA Algorithm for Speech Data Encryption and Decryption
Implementation of RSA Algorithm for Speech Data Encryption and DecryptionImplementation of RSA Algorithm for Speech Data Encryption and Decryption
Implementation of RSA Algorithm for Speech Data Encryption and Decryption
Md. Ariful Hoque
 

More from Md. Ariful Hoque (8)

Automated Payment Gateway for small shops
Automated Payment Gateway for small shopsAutomated Payment Gateway for small shops
Automated Payment Gateway for small shops
 
µIP (micro IP)
µIP (micro IP)µIP (micro IP)
µIP (micro IP)
 
Poz Software
Poz SoftwarePoz Software
Poz Software
 
Show me
Show meShow me
Show me
 
EIMS software for schools
EIMS software for schoolsEIMS software for schools
EIMS software for schools
 
Cost effective arena active protection system
Cost effective arena active protection systemCost effective arena active protection system
Cost effective arena active protection system
 
Amazon ec2cluster
Amazon ec2clusterAmazon ec2cluster
Amazon ec2cluster
 
Implementation of RSA Algorithm for Speech Data Encryption and Decryption
Implementation of RSA Algorithm for Speech Data Encryption and DecryptionImplementation of RSA Algorithm for Speech Data Encryption and Decryption
Implementation of RSA Algorithm for Speech Data Encryption and Decryption
 

Recently uploaded

SFCC Biologists' Meeting - Argyll Update 2024.pptx
SFCC Biologists' Meeting - Argyll Update 2024.pptxSFCC Biologists' Meeting - Argyll Update 2024.pptx
SFCC Biologists' Meeting - Argyll Update 2024.pptx
Scottish Fisheries Co Ordination Centre
 
Animal Classification Based on 5 Kingdom Division.pdf
Animal Classification Based on 5 Kingdom Division.pdfAnimal Classification Based on 5 Kingdom Division.pdf
Animal Classification Based on 5 Kingdom Division.pdf
SELF-EXPLANATORY
 
2025 SXSW AI For Climate Change Panel Proposal
2025 SXSW AI For Climate Change Panel Proposal2025 SXSW AI For Climate Change Panel Proposal
2025 SXSW AI For Climate Change Panel Proposal
ayousuf1101
 
ACD 101 Introduction to Science. Lecture 4.pptx
ACD 101 Introduction to Science.  Lecture 4.pptxACD 101 Introduction to Science.  Lecture 4.pptx
ACD 101 Introduction to Science. Lecture 4.pptx
SamuelAsareLarbi
 
The CENIC-AI Resource: The Right Connection
The CENIC-AI Resource: The Right ConnectionThe CENIC-AI Resource: The Right Connection
The CENIC-AI Resource: The Right Connection
Larry Smarr
 
SFCC Biologists' Meeting - Wester Ross Update 2024.pdf
SFCC Biologists' Meeting - Wester Ross Update 2024.pdfSFCC Biologists' Meeting - Wester Ross Update 2024.pdf
SFCC Biologists' Meeting - Wester Ross Update 2024.pdf
Scottish Fisheries Co Ordination Centre
 
Black soldier fly .
Black soldier fly                       .Black soldier fly                       .
Black soldier fly .
sankpalpranit
 
QUIZ 10 Climate Change (Science, Technology and Society).pptx
QUIZ 10 Climate Change (Science, Technology and Society).pptxQUIZ 10 Climate Change (Science, Technology and Society).pptx
QUIZ 10 Climate Change (Science, Technology and Society).pptx
MelvinEarlAgda
 
SFCC Biologists' Meeting - Ayrshire Update 2024.pptx
SFCC Biologists' Meeting - Ayrshire Update 2024.pptxSFCC Biologists' Meeting - Ayrshire Update 2024.pptx
SFCC Biologists' Meeting - Ayrshire Update 2024.pptx
Scottish Fisheries Co Ordination Centre
 
Pattern Recognition Revisited, ICVSS 2016 presentaion
Pattern Recognition Revisited, ICVSS 2016 presentaionPattern Recognition Revisited, ICVSS 2016 presentaion
Pattern Recognition Revisited, ICVSS 2016 presentaion
kenmaeda2
 
Solar Coronal Heating by Kinetic Alfvén Waves
Solar Coronal Heating by Kinetic Alfvén WavesSolar Coronal Heating by Kinetic Alfvén Waves
Solar Coronal Heating by Kinetic Alfvén Waves
Sérgio Sacani
 
Role of bio fertilizers in sustainable organic agricultural development
Role of bio fertilizers in sustainable organic agricultural developmentRole of bio fertilizers in sustainable organic agricultural development
Role of bio fertilizers in sustainable organic agricultural development
AyanKoley2
 
Ribosonal DNA Organization and Evolution at Large Scale IBC2024
Ribosonal DNA  Organization and Evolution at Large Scale IBC2024Ribosonal DNA  Organization and Evolution at Large Scale IBC2024
Ribosonal DNA Organization and Evolution at Large Scale IBC2024
Pat (JS) Heslop-Harrison
 
Principles of Developmental Biology by Dr.M.Jothimuniyandi
Principles of Developmental Biology by Dr.M.JothimuniyandiPrinciples of Developmental Biology by Dr.M.Jothimuniyandi
Principles of Developmental Biology by Dr.M.Jothimuniyandi
Jothimuniyandi
 
INSET Powerpoint Presentation Session 2-3.pptx.pdf
INSET Powerpoint Presentation Session 2-3.pptx.pdfINSET Powerpoint Presentation Session 2-3.pptx.pdf
INSET Powerpoint Presentation Session 2-3.pptx.pdf
MishaWilliams2
 
Soil Sterilization and its types
Soil Sterilization and its typesSoil Sterilization and its types
Soil Sterilization and its types
learnwithanandhi
 
Special Vegetative Structures
Special Vegetative StructuresSpecial Vegetative Structures
Special Vegetative Structures
learnwithanandhi
 
SFCC Biologists' Meeting - Deveron Update 2024.pptx
SFCC Biologists' Meeting - Deveron Update 2024.pptxSFCC Biologists' Meeting - Deveron Update 2024.pptx
SFCC Biologists' Meeting - Deveron Update 2024.pptx
Scottish Fisheries Co Ordination Centre
 
The NSF Grants Leading Up to CHASE-CI ENS
The NSF Grants Leading Up to CHASE-CI ENSThe NSF Grants Leading Up to CHASE-CI ENS
The NSF Grants Leading Up to CHASE-CI ENS
Larry Smarr
 
Eight Millennium Development Goals (MDGs)
Eight Millennium Development Goals (MDGs)Eight Millennium Development Goals (MDGs)
Eight Millennium Development Goals (MDGs)
SELF-EXPLANATORY
 

Recently uploaded (20)

SFCC Biologists' Meeting - Argyll Update 2024.pptx
SFCC Biologists' Meeting - Argyll Update 2024.pptxSFCC Biologists' Meeting - Argyll Update 2024.pptx
SFCC Biologists' Meeting - Argyll Update 2024.pptx
 
Animal Classification Based on 5 Kingdom Division.pdf
Animal Classification Based on 5 Kingdom Division.pdfAnimal Classification Based on 5 Kingdom Division.pdf
Animal Classification Based on 5 Kingdom Division.pdf
 
2025 SXSW AI For Climate Change Panel Proposal
2025 SXSW AI For Climate Change Panel Proposal2025 SXSW AI For Climate Change Panel Proposal
2025 SXSW AI For Climate Change Panel Proposal
 
ACD 101 Introduction to Science. Lecture 4.pptx
ACD 101 Introduction to Science.  Lecture 4.pptxACD 101 Introduction to Science.  Lecture 4.pptx
ACD 101 Introduction to Science. Lecture 4.pptx
 
The CENIC-AI Resource: The Right Connection
The CENIC-AI Resource: The Right ConnectionThe CENIC-AI Resource: The Right Connection
The CENIC-AI Resource: The Right Connection
 
SFCC Biologists' Meeting - Wester Ross Update 2024.pdf
SFCC Biologists' Meeting - Wester Ross Update 2024.pdfSFCC Biologists' Meeting - Wester Ross Update 2024.pdf
SFCC Biologists' Meeting - Wester Ross Update 2024.pdf
 
Black soldier fly .
Black soldier fly                       .Black soldier fly                       .
Black soldier fly .
 
QUIZ 10 Climate Change (Science, Technology and Society).pptx
QUIZ 10 Climate Change (Science, Technology and Society).pptxQUIZ 10 Climate Change (Science, Technology and Society).pptx
QUIZ 10 Climate Change (Science, Technology and Society).pptx
 
SFCC Biologists' Meeting - Ayrshire Update 2024.pptx
SFCC Biologists' Meeting - Ayrshire Update 2024.pptxSFCC Biologists' Meeting - Ayrshire Update 2024.pptx
SFCC Biologists' Meeting - Ayrshire Update 2024.pptx
 
Pattern Recognition Revisited, ICVSS 2016 presentaion
Pattern Recognition Revisited, ICVSS 2016 presentaionPattern Recognition Revisited, ICVSS 2016 presentaion
Pattern Recognition Revisited, ICVSS 2016 presentaion
 
Solar Coronal Heating by Kinetic Alfvén Waves
Solar Coronal Heating by Kinetic Alfvén WavesSolar Coronal Heating by Kinetic Alfvén Waves
Solar Coronal Heating by Kinetic Alfvén Waves
 
Role of bio fertilizers in sustainable organic agricultural development
Role of bio fertilizers in sustainable organic agricultural developmentRole of bio fertilizers in sustainable organic agricultural development
Role of bio fertilizers in sustainable organic agricultural development
 
Ribosonal DNA Organization and Evolution at Large Scale IBC2024
Ribosonal DNA  Organization and Evolution at Large Scale IBC2024Ribosonal DNA  Organization and Evolution at Large Scale IBC2024
Ribosonal DNA Organization and Evolution at Large Scale IBC2024
 
Principles of Developmental Biology by Dr.M.Jothimuniyandi
Principles of Developmental Biology by Dr.M.JothimuniyandiPrinciples of Developmental Biology by Dr.M.Jothimuniyandi
Principles of Developmental Biology by Dr.M.Jothimuniyandi
 
INSET Powerpoint Presentation Session 2-3.pptx.pdf
INSET Powerpoint Presentation Session 2-3.pptx.pdfINSET Powerpoint Presentation Session 2-3.pptx.pdf
INSET Powerpoint Presentation Session 2-3.pptx.pdf
 
Soil Sterilization and its types
Soil Sterilization and its typesSoil Sterilization and its types
Soil Sterilization and its types
 
Special Vegetative Structures
Special Vegetative StructuresSpecial Vegetative Structures
Special Vegetative Structures
 
SFCC Biologists' Meeting - Deveron Update 2024.pptx
SFCC Biologists' Meeting - Deveron Update 2024.pptxSFCC Biologists' Meeting - Deveron Update 2024.pptx
SFCC Biologists' Meeting - Deveron Update 2024.pptx
 
The NSF Grants Leading Up to CHASE-CI ENS
The NSF Grants Leading Up to CHASE-CI ENSThe NSF Grants Leading Up to CHASE-CI ENS
The NSF Grants Leading Up to CHASE-CI ENS
 
Eight Millennium Development Goals (MDGs)
Eight Millennium Development Goals (MDGs)Eight Millennium Development Goals (MDGs)
Eight Millennium Development Goals (MDGs)
 

Decision Tree Learning

  • 1. Md. Ariful Hoque Roll: MSC 140202 Khulna University
  • 2.  Introduction.  Decision Tree Terms.  Example.  Constructing A decision Tree.  Calculation Of Entropy.  Information Gain.  Gini Impurity.  Termination Criteria.  Mathlab Example.  Implementations.  Advantage  Limitation  Conclusion
  • 3.  Decision tree learning is the construction of a decision tree from class- labeled training tuples.  A decision tree is model of decisions and their possible consequences.  It Includes chance event outcomes, resource costs, and utility.  Its follow top down approach.  Decision trees classify instances by sorting them down the tree from the root to some leaf node, which provides the classification of the instance
  • 4. Root Node Condition Check Leaf Node(Decision Point) Leaf Node(Decision Point) Condition Check
  • 5. Yes Color = Green ? Size = Big ? Color = Yellow ? Size =medium?Watermelon Apple Grape Shape = Round? Size = Small ? Taste = sweet? Apple Yes No Yes No Cherry Grape Size = Big? Grape Lemon Banana Yes YesYes Yes Yes No No No No No
  • 6. There are many specific decision-tree algorithms-  ID3  C4.5  CART  CHAID  MARS
  • 7.  Which attribute to choose? ◦ Information Gain  ENTROPY  Where to stop? ◦ Termination criteria
  • 8.  Different algorithms use different metrics for measuring best.  These generally measure the homogeneity of the target variable within the subsets.  Some examples are given in the next slides.
  • 9. ◦ Entropy is a measure of uncertainty in the data Entropy(S) = ∑(i=1 to l)-|Si|/|S| * log2(|Si|/|S|)  S = set of examples  Si = subset of S with value vi under the target attribute  l = size of the range of the target attribute
  • 10.  Used by the ID3, C4.5 and C5.0 tree-generation algorithms.  Information gain is based on the concept of entropy from information theory. Here , fi = fraction of items m = Items
  • 11.  Used by the CART (classification and regression tree).  It measure incorrectly labeled of randomly chosen element.  Gini impurity can be computed by summing the probability of each item being chosen times the probability of a mistake in categorizing that item.  It reaches its minimum (zero) when all cases in the node fall into a single target category.  To compute Gini impurity for a set of items, suppose-  Let f be the fraction of items labeled with value i in the set.
  • 12.  All the records at the node belong to one class  A significant majority fraction of records belong to a single class  The segment contains only one or very small number of records  The improvement is not substantial enough to warrant making the split.
  • 13.  Create a classification decision tree for Fisher's iris data:  load fisheriris;  t = classregtree(meas,species,...  'names',{'SL' 'SW' 'PL' 'PW'})  view(t)
  • 14.  t =  Decision tree for classification  if PL<2.45 then node 2 elseif PL>=2.45 then node 3 else setosa  class = setosa  if PW<1.75 then node 4 elseif PW>=1.75 then node 5 else versicolor  if PL<4.95 then node 6 elseif PL>=4.95 then node 7 else versicolor  class = virginica  if PW<1.65 then node 8 elseif PW>=1.65 then node 9 else versicolor  class = virginica  class = versicolor  class = virginica
  • 16.  In data mining software.  Several examples include Salford Systems CART, IBM SPSS , KNIME, Microsoft SQL Server, and scikit-learn.
  • 17.  Decision-tree learners can create over-complex trees.  There are concepts that are hard to learn because decision trees do not express them easily, such as XOR, parity or multiplexer problems.  When there are more records and very less number of attributes/features.
  • 18.  Simple to understand and interpret.  Requires little data preparation.  Able to handle both numerical and categorical data.  Performs well with large datasets.
  • 19.  Decision tree learning is one of the predictive modeling approaches used in statistics, data mining and machine learning.  In our example section we saw a classification tree.  Where the target variable can take a finite set of values.  In Mathlab example section we saw regression trees.  Where the target variable can take continuous values (typically real numbers).
  • 20. 1. Decision tree learning[Online]. Available:http://en.wikipedia.org/wiki/Decision_tree_learning 2. Classregtree[Online]. Available:http://www.mathworks.com/help/stats/classregtree.html 3. Richard O.Duda, Peter E. Hart, David G. Stok. Pattern Classification. Second Edition 4. Breiman, L., J. Friedman, R. Olshen, and C. Stone. Classification and Regression Trees. Boca Raton, FL: CRC Press, 1984.