SlideShare a Scribd company logo
Post pruning methods
Mojtaba amiri
M.S of artificial intelligence
Approaches
• top-down approach :
proceed from the root towards the leaves of tree
• bottom-up approach :
starting the analysis from the leaves and finishing with the root node
Based methods
1. Reduced Error Pruning
2. Pessimistic error pruning
3. Error complexity pruning
4. Minimum Error pruning
5. Cost based pruning
6. Iterative growing and pruning algorithm
Reduced Error Pruning
• This method was proposed by Quinlan .
• This method considers each of the decision nodes in the tree to be
candidates for pruning, consist of removing the subtree rooted at that
node, making it a leaf node .
• The available data is divided into three parts:
training examples , validation examples for pruning , a set of test
examples for estimate of accuracy over future unseen examples
• Next step calculating new tree accuracy
Reduced Error Pruning
• The problems related to the method of reduced error pruning are
basically two:
1. The use of a pruning set distinct from the training set is inadequate
when a small number of observations are available
2. the parts of the original tree that correspond to special cases outside
the test set may be lost after pruning. Therefore trees pruned via that
pruning method may fail in correctly classifying exceptional cases.
Reduced Error Pruning
• Pros :
linear computational complexity
• Cons :
over pruning , if the test set is much smaller than the training set
Pessimistic error pruning
• This pruning method, proposed by Quinlan
• it avoids using an independent pruning set
• The misclassification rate, estimated by means of the training set
• If results to be optimistic , thus it always happens that pruning
operations based on the same data set produce trees that are larger
than it is needed .
Pessimistic error pruning
• Pros :
This method has a linear complexity in the number of leaves
• Cons:
the worst case is that in which the tree has not to be pruned at all
Error complexity pruning
• It finds error complexity at each node .
1. Calculating the error cost of the node
2. r(t) is error rate of a node
3. p(t) is probability of occurrence of a node
4. If node t was not pruned then error
cost of subtree T , rooted at t:
5. Then , The error complexity of the node
Error complexity pruning
• The method consists of following steps:
1. a ( error complexity ) is computed for each node.
2. the minimum a node is pruned.
3. the above is repeated and a forest of pruned tree is formed.
4. the tree with best accuracy is selected.
Minimum Error pruning
• This method was developed by Niblett and Brotko
• bottom-up approach
• seeks a single tree that minimizes the expected error rate on an
independent data set
• If it is predicted that all future examples will be in class c, the
following equation is used to predict the expected error rate of
pruning at node t :
1. K : # of class
2. nt : # of examples in node t
3. nt,c : # of examples assigned to class c in node t
Minimum Error pruning
• The method consists of following steps
1. At each non leaf node in the tree, calculate expected error rate if
that subtree is pruned.
2. Calculate the expected error rate for that node if subtree is not
pruned.
3. If pruning the node leads to greater expected error rate, then keep
the subtree; otherwise, prune it .
Cost based pruning
• In this method not only an error rate is considered at each node but
also a cost is considered .
• That is for pruning decision tree error rate and cost of deciding
selection of one or more class-label attribute is considered .
Iterative growing and pruning algorithm
• Gelfand et al
• These goals are reached by splitting the data set into two subsets
• then by repeatedly growing and pruning a tree on different subsets
• a tree is grown by using the first subset
• then it is pruned by using the second subset
Tanks for reading

More Related Content

What's hot

Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
Mohammad Junaid Khan
 
Cross validation
Cross validationCross validation
Cross validation
RidhaAfrawe
 
An Introduction to Anomaly Detection
An Introduction to Anomaly DetectionAn Introduction to Anomaly Detection
An Introduction to Anomaly Detection
Kenneth Graham
 
Machine learning with scikitlearn
Machine learning with scikitlearnMachine learning with scikitlearn
Machine learning with scikitlearn
Pratap Dangeti
 
Time series data mining techniques
Time series data mining techniquesTime series data mining techniques
Time series data mining techniques
Shanmukha S. Potti
 
Random forest and decision tree
Random forest and decision treeRandom forest and decision tree
Random forest and decision tree
AAKANKSHA JAIN
 
Anomaly detection (Unsupervised Learning) in Machine Learning
Anomaly detection (Unsupervised Learning) in Machine LearningAnomaly detection (Unsupervised Learning) in Machine Learning
Anomaly detection (Unsupervised Learning) in Machine Learning
Kuppusamy P
 
Lect4 principal component analysis-I
Lect4 principal component analysis-ILect4 principal component analysis-I
Lect4 principal component analysis-I
hktripathy
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
Milind Gokhale
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
Rishabh Gupta
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
zekeLabs Technologies
 
Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees
Kush Kulshrestha
 
Decision tree and random forest
Decision tree and random forestDecision tree and random forest
Decision tree and random forest
Lippo Group Digital
 
2.2 decision tree
2.2 decision tree2.2 decision tree
2.2 decision tree
Krish_ver2
 
Random Forest
Random ForestRandom Forest
Random Forest
Abdullah al Mamun
 
Classification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsClassification Based Machine Learning Algorithms
Classification Based Machine Learning Algorithms
Md. Main Uddin Rony
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
Prof. Neeta Awasthy
 
Feature selection concepts and methods
Feature selection concepts and methodsFeature selection concepts and methods
Feature selection concepts and methods
Reza Ramezani
 
Feature selection
Feature selectionFeature selection
Feature selection
dkpawar
 
Machine Learning - Ensemble Methods
Machine Learning - Ensemble MethodsMachine Learning - Ensemble Methods
Machine Learning - Ensemble Methods
Andrew Ferlitsch
 

What's hot (20)

Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
 
Cross validation
Cross validationCross validation
Cross validation
 
An Introduction to Anomaly Detection
An Introduction to Anomaly DetectionAn Introduction to Anomaly Detection
An Introduction to Anomaly Detection
 
Machine learning with scikitlearn
Machine learning with scikitlearnMachine learning with scikitlearn
Machine learning with scikitlearn
 
Time series data mining techniques
Time series data mining techniquesTime series data mining techniques
Time series data mining techniques
 
Random forest and decision tree
Random forest and decision treeRandom forest and decision tree
Random forest and decision tree
 
Anomaly detection (Unsupervised Learning) in Machine Learning
Anomaly detection (Unsupervised Learning) in Machine LearningAnomaly detection (Unsupervised Learning) in Machine Learning
Anomaly detection (Unsupervised Learning) in Machine Learning
 
Lect4 principal component analysis-I
Lect4 principal component analysis-ILect4 principal component analysis-I
Lect4 principal component analysis-I
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees
 
Decision tree and random forest
Decision tree and random forestDecision tree and random forest
Decision tree and random forest
 
2.2 decision tree
2.2 decision tree2.2 decision tree
2.2 decision tree
 
Random Forest
Random ForestRandom Forest
Random Forest
 
Classification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsClassification Based Machine Learning Algorithms
Classification Based Machine Learning Algorithms
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
Feature selection concepts and methods
Feature selection concepts and methodsFeature selection concepts and methods
Feature selection concepts and methods
 
Feature selection
Feature selectionFeature selection
Feature selection
 
Machine Learning - Ensemble Methods
Machine Learning - Ensemble MethodsMachine Learning - Ensemble Methods
Machine Learning - Ensemble Methods
 

Viewers also liked

Jose_TH1_T09_5.ppt
Jose_TH1_T09_5.pptJose_TH1_T09_5.ppt
Jose_TH1_T09_5.ppt
grssieee
 
Bonsai Networking: pruning your professional learning network (VU Seminar)
Bonsai Networking: pruning your professional learning network (VU Seminar)Bonsai Networking: pruning your professional learning network (VU Seminar)
Bonsai Networking: pruning your professional learning network (VU Seminar)
Joyce Seitzinger
 
Hyperspectral unmixing using novel conversion model.ppt
Hyperspectral unmixing using novel conversion model.pptHyperspectral unmixing using novel conversion model.ppt
Hyperspectral unmixing using novel conversion model.ppt
grssieee
 
Subspace_Discriminant_Approach_Hyperspectral.ppt
Subspace_Discriminant_Approach_Hyperspectral.pptSubspace_Discriminant_Approach_Hyperspectral.ppt
Subspace_Discriminant_Approach_Hyperspectral.ppt
grssieee
 
MCC_PhDDefense
MCC_PhDDefenseMCC_PhDDefense
MCC_PhDDefense
Manuel Cubero-Castan
 
Signal Processing Course : Compressed Sensing
Signal Processing Course : Compressed SensingSignal Processing Course : Compressed Sensing
Signal Processing Course : Compressed Sensing
Gabriel Peyré
 
B.sc. agri i po h unit 3 method of pruning, growth regulators and nursery
B.sc. agri i po h unit 3 method of pruning, growth regulators and nurseryB.sc. agri i po h unit 3 method of pruning, growth regulators and nursery
B.sc. agri i po h unit 3 method of pruning, growth regulators and nursery
Rai University
 
Learning Sparse Representation
Learning Sparse RepresentationLearning Sparse Representation
Learning Sparse Representation
Gabriel Peyré
 
Components Of Executive Information System
Components Of Executive Information SystemComponents Of Executive Information System
Components Of Executive Information System
Theju Paul
 
Trade finance post and pre shipment
Trade finance post and pre shipmentTrade finance post and pre shipment
Trade finance post and pre shipment
StudsPlanet.com
 
Executive information system
Executive information systemExecutive information system
Executive information system
Shiva Krishna Chandra Shekar
 
C. executive information systems
C. executive information systemsC. executive information systems
C. executive information systems
gohilrajdipsinh
 
Executive information system (EIS)
Executive information system (EIS)Executive information system (EIS)
Executive information system (EIS)
Rogerio Pereira
 
Spandana image processing and compression techniques (7840228)
Spandana   image processing and compression techniques (7840228)Spandana   image processing and compression techniques (7840228)
Spandana image processing and compression techniques (7840228)
indianspandana
 
Pre & post_shipment_finance[1]
Pre & post_shipment_finance[1]Pre & post_shipment_finance[1]
Pre & post_shipment_finance[1]
Akshay Samant
 
Executive Information System
Executive Information SystemExecutive Information System
Executive Information System
university of education,Lahore
 
Competitive advantage
Competitive advantageCompetitive advantage
Competitive advantage
Mohit Singla
 
Cabrio
CabrioCabrio
Distintas ciudades
Distintas ciudadesDistintas ciudades
Distintas ciudades
Oriana Barragan
 
Matemática y tic
Matemática y ticMatemática y tic
Matemática y tic
Fernando Vélez Damián
 

Viewers also liked (20)

Jose_TH1_T09_5.ppt
Jose_TH1_T09_5.pptJose_TH1_T09_5.ppt
Jose_TH1_T09_5.ppt
 
Bonsai Networking: pruning your professional learning network (VU Seminar)
Bonsai Networking: pruning your professional learning network (VU Seminar)Bonsai Networking: pruning your professional learning network (VU Seminar)
Bonsai Networking: pruning your professional learning network (VU Seminar)
 
Hyperspectral unmixing using novel conversion model.ppt
Hyperspectral unmixing using novel conversion model.pptHyperspectral unmixing using novel conversion model.ppt
Hyperspectral unmixing using novel conversion model.ppt
 
Subspace_Discriminant_Approach_Hyperspectral.ppt
Subspace_Discriminant_Approach_Hyperspectral.pptSubspace_Discriminant_Approach_Hyperspectral.ppt
Subspace_Discriminant_Approach_Hyperspectral.ppt
 
MCC_PhDDefense
MCC_PhDDefenseMCC_PhDDefense
MCC_PhDDefense
 
Signal Processing Course : Compressed Sensing
Signal Processing Course : Compressed SensingSignal Processing Course : Compressed Sensing
Signal Processing Course : Compressed Sensing
 
B.sc. agri i po h unit 3 method of pruning, growth regulators and nursery
B.sc. agri i po h unit 3 method of pruning, growth regulators and nurseryB.sc. agri i po h unit 3 method of pruning, growth regulators and nursery
B.sc. agri i po h unit 3 method of pruning, growth regulators and nursery
 
Learning Sparse Representation
Learning Sparse RepresentationLearning Sparse Representation
Learning Sparse Representation
 
Components Of Executive Information System
Components Of Executive Information SystemComponents Of Executive Information System
Components Of Executive Information System
 
Trade finance post and pre shipment
Trade finance post and pre shipmentTrade finance post and pre shipment
Trade finance post and pre shipment
 
Executive information system
Executive information systemExecutive information system
Executive information system
 
C. executive information systems
C. executive information systemsC. executive information systems
C. executive information systems
 
Executive information system (EIS)
Executive information system (EIS)Executive information system (EIS)
Executive information system (EIS)
 
Spandana image processing and compression techniques (7840228)
Spandana   image processing and compression techniques (7840228)Spandana   image processing and compression techniques (7840228)
Spandana image processing and compression techniques (7840228)
 
Pre & post_shipment_finance[1]
Pre & post_shipment_finance[1]Pre & post_shipment_finance[1]
Pre & post_shipment_finance[1]
 
Executive Information System
Executive Information SystemExecutive Information System
Executive Information System
 
Competitive advantage
Competitive advantageCompetitive advantage
Competitive advantage
 
Cabrio
CabrioCabrio
Cabrio
 
Distintas ciudades
Distintas ciudadesDistintas ciudades
Distintas ciudades
 
Matemática y tic
Matemática y ticMatemática y tic
Matemática y tic
 

Similar to Post pruning

random forest.pptx
random forest.pptxrandom forest.pptx
random forest.pptx
PriyadharshiniG41
 
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Maninda Edirisooriya
 
Random Forest Decision Tree.pptx
Random Forest Decision Tree.pptxRandom Forest Decision Tree.pptx
Random Forest Decision Tree.pptx
Ramakrishna Reddy Bijjam
 
Decision Tree in Machine Learning
Decision Tree in Machine Learning  Decision Tree in Machine Learning
Decision Tree in Machine Learning
Souma Maiti
 
Feature selection with imbalanced data in agriculture
Feature selection with  imbalanced data in agricultureFeature selection with  imbalanced data in agriculture
Feature selection with imbalanced data in agriculture
Aboul Ella Hassanien
 
Decision Tree.pptx
Decision Tree.pptxDecision Tree.pptx
Decision Tree.pptx
JayabharathiMuraliku
 
From decision trees to random forests
From decision trees to random forestsFrom decision trees to random forests
From decision trees to random forests
Viet-Trung TRAN
 
Unit 2-ML.pptx
Unit 2-ML.pptxUnit 2-ML.pptx
Unit 2-ML.pptx
Chitrachitrap
 
Lecture4.ppt
Lecture4.pptLecture4.ppt
Lecture4.ppt
Minakshee Patil
 
Decision Tree.pptx
Decision Tree.pptxDecision Tree.pptx
Decision Tree.pptx
kibriaswe
 
04 Classification in Data Mining
04 Classification in Data Mining04 Classification in Data Mining
04 Classification in Data Mining
Valerii Klymchuk
 
Introduction to Random Forest
Introduction to Random Forest Introduction to Random Forest
Introduction to Random Forest
Rupak Roy
 
Decision Tree Classification Algorithm.pptx
Decision Tree Classification Algorithm.pptxDecision Tree Classification Algorithm.pptx
Decision Tree Classification Algorithm.pptx
PriyadharshiniG41
 
Machine Learning Unit-5 Decesion Trees & Random Forest.pdf
Machine Learning Unit-5 Decesion Trees & Random Forest.pdfMachine Learning Unit-5 Decesion Trees & Random Forest.pdf
Machine Learning Unit-5 Decesion Trees & Random Forest.pdf
AdityaSoraut
 
Introduction to random forest and gradient boosting methods a lecture
Introduction to random forest and gradient boosting methods   a lectureIntroduction to random forest and gradient boosting methods   a lecture
Introduction to random forest and gradient boosting methods a lecture
Shreyas S K
 
Chapter 4.pdf
Chapter 4.pdfChapter 4.pdf
Chapter 4.pdf
DrGnaneswariG
 
Decision Trees
Decision TreesDecision Trees
Decision Trees
Student
 
22 Machine Learning Feature Selection
22 Machine Learning Feature Selection22 Machine Learning Feature Selection
22 Machine Learning Feature Selection
Andres Mendez-Vazquez
 
SPSS Step-by-Step Tutorial and Statistical Guides by Statswork
SPSS Step-by-Step Tutorial and Statistical Guides by StatsworkSPSS Step-by-Step Tutorial and Statistical Guides by Statswork
SPSS Step-by-Step Tutorial and Statistical Guides by Statswork
Stats Statswork
 
Unsupervised Learning Clustering KMean and Hirarchical.pptx
Unsupervised Learning Clustering KMean and Hirarchical.pptxUnsupervised Learning Clustering KMean and Hirarchical.pptx
Unsupervised Learning Clustering KMean and Hirarchical.pptx
FaridAliMousa1
 

Similar to Post pruning (20)

random forest.pptx
random forest.pptxrandom forest.pptx
random forest.pptx
 
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
Lecture 9 - Decision Trees and Ensemble Methods, a lecture in subject module ...
 
Random Forest Decision Tree.pptx
Random Forest Decision Tree.pptxRandom Forest Decision Tree.pptx
Random Forest Decision Tree.pptx
 
Decision Tree in Machine Learning
Decision Tree in Machine Learning  Decision Tree in Machine Learning
Decision Tree in Machine Learning
 
Feature selection with imbalanced data in agriculture
Feature selection with  imbalanced data in agricultureFeature selection with  imbalanced data in agriculture
Feature selection with imbalanced data in agriculture
 
Decision Tree.pptx
Decision Tree.pptxDecision Tree.pptx
Decision Tree.pptx
 
From decision trees to random forests
From decision trees to random forestsFrom decision trees to random forests
From decision trees to random forests
 
Unit 2-ML.pptx
Unit 2-ML.pptxUnit 2-ML.pptx
Unit 2-ML.pptx
 
Lecture4.ppt
Lecture4.pptLecture4.ppt
Lecture4.ppt
 
Decision Tree.pptx
Decision Tree.pptxDecision Tree.pptx
Decision Tree.pptx
 
04 Classification in Data Mining
04 Classification in Data Mining04 Classification in Data Mining
04 Classification in Data Mining
 
Introduction to Random Forest
Introduction to Random Forest Introduction to Random Forest
Introduction to Random Forest
 
Decision Tree Classification Algorithm.pptx
Decision Tree Classification Algorithm.pptxDecision Tree Classification Algorithm.pptx
Decision Tree Classification Algorithm.pptx
 
Machine Learning Unit-5 Decesion Trees & Random Forest.pdf
Machine Learning Unit-5 Decesion Trees & Random Forest.pdfMachine Learning Unit-5 Decesion Trees & Random Forest.pdf
Machine Learning Unit-5 Decesion Trees & Random Forest.pdf
 
Introduction to random forest and gradient boosting methods a lecture
Introduction to random forest and gradient boosting methods   a lectureIntroduction to random forest and gradient boosting methods   a lecture
Introduction to random forest and gradient boosting methods a lecture
 
Chapter 4.pdf
Chapter 4.pdfChapter 4.pdf
Chapter 4.pdf
 
Decision Trees
Decision TreesDecision Trees
Decision Trees
 
22 Machine Learning Feature Selection
22 Machine Learning Feature Selection22 Machine Learning Feature Selection
22 Machine Learning Feature Selection
 
SPSS Step-by-Step Tutorial and Statistical Guides by Statswork
SPSS Step-by-Step Tutorial and Statistical Guides by StatsworkSPSS Step-by-Step Tutorial and Statistical Guides by Statswork
SPSS Step-by-Step Tutorial and Statistical Guides by Statswork
 
Unsupervised Learning Clustering KMean and Hirarchical.pptx
Unsupervised Learning Clustering KMean and Hirarchical.pptxUnsupervised Learning Clustering KMean and Hirarchical.pptx
Unsupervised Learning Clustering KMean and Hirarchical.pptx
 

Recently uploaded

Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 

Recently uploaded (20)

Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 

Post pruning

  • 1. Post pruning methods Mojtaba amiri M.S of artificial intelligence
  • 2. Approaches • top-down approach : proceed from the root towards the leaves of tree • bottom-up approach : starting the analysis from the leaves and finishing with the root node
  • 3. Based methods 1. Reduced Error Pruning 2. Pessimistic error pruning 3. Error complexity pruning 4. Minimum Error pruning 5. Cost based pruning 6. Iterative growing and pruning algorithm
  • 4. Reduced Error Pruning • This method was proposed by Quinlan . • This method considers each of the decision nodes in the tree to be candidates for pruning, consist of removing the subtree rooted at that node, making it a leaf node . • The available data is divided into three parts: training examples , validation examples for pruning , a set of test examples for estimate of accuracy over future unseen examples • Next step calculating new tree accuracy
  • 5. Reduced Error Pruning • The problems related to the method of reduced error pruning are basically two: 1. The use of a pruning set distinct from the training set is inadequate when a small number of observations are available 2. the parts of the original tree that correspond to special cases outside the test set may be lost after pruning. Therefore trees pruned via that pruning method may fail in correctly classifying exceptional cases.
  • 6. Reduced Error Pruning • Pros : linear computational complexity • Cons : over pruning , if the test set is much smaller than the training set
  • 7. Pessimistic error pruning • This pruning method, proposed by Quinlan • it avoids using an independent pruning set • The misclassification rate, estimated by means of the training set • If results to be optimistic , thus it always happens that pruning operations based on the same data set produce trees that are larger than it is needed .
  • 8. Pessimistic error pruning • Pros : This method has a linear complexity in the number of leaves • Cons: the worst case is that in which the tree has not to be pruned at all
  • 9. Error complexity pruning • It finds error complexity at each node . 1. Calculating the error cost of the node 2. r(t) is error rate of a node 3. p(t) is probability of occurrence of a node 4. If node t was not pruned then error cost of subtree T , rooted at t: 5. Then , The error complexity of the node
  • 10. Error complexity pruning • The method consists of following steps: 1. a ( error complexity ) is computed for each node. 2. the minimum a node is pruned. 3. the above is repeated and a forest of pruned tree is formed. 4. the tree with best accuracy is selected.
  • 11. Minimum Error pruning • This method was developed by Niblett and Brotko • bottom-up approach • seeks a single tree that minimizes the expected error rate on an independent data set • If it is predicted that all future examples will be in class c, the following equation is used to predict the expected error rate of pruning at node t : 1. K : # of class 2. nt : # of examples in node t 3. nt,c : # of examples assigned to class c in node t
  • 12. Minimum Error pruning • The method consists of following steps 1. At each non leaf node in the tree, calculate expected error rate if that subtree is pruned. 2. Calculate the expected error rate for that node if subtree is not pruned. 3. If pruning the node leads to greater expected error rate, then keep the subtree; otherwise, prune it .
  • 13. Cost based pruning • In this method not only an error rate is considered at each node but also a cost is considered . • That is for pruning decision tree error rate and cost of deciding selection of one or more class-label attribute is considered .
  • 14. Iterative growing and pruning algorithm • Gelfand et al • These goals are reached by splitting the data set into two subsets • then by repeatedly growing and pruning a tree on different subsets • a tree is grown by using the first subset • then it is pruned by using the second subset