SlideShare a Scribd company logo
1 of 15
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

Ensemble learning
Ensemble learningEnsemble learning
Ensemble learningHaris Jamil
 
Introduction to Linear Discriminant Analysis
Introduction to Linear Discriminant AnalysisIntroduction to Linear Discriminant Analysis
Introduction to Linear Discriminant AnalysisJaclyn Kokx
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningLior Rokach
 
Support vector machine
Support vector machineSupport vector machine
Support vector machineMusa Hawamdah
 
Feature Engineering & Selection
Feature Engineering & SelectionFeature Engineering & Selection
Feature Engineering & SelectionEng Teong Cheah
 
What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?Kazuki Yoshida
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm pptMayank Jain
 
CART – Classification & Regression Trees
CART – Classification & Regression TreesCART – Classification & Regression Trees
CART – Classification & Regression TreesHemant Chetwani
 
Genetik Algoritma & Programlama (Dr.Hakan Erdun)
Genetik Algoritma & Programlama (Dr.Hakan Erdun)Genetik Algoritma & Programlama (Dr.Hakan Erdun)
Genetik Algoritma & Programlama (Dr.Hakan Erdun)HakanErdun
 
Deep learning: Overfitting , underfitting, and regularization
Deep learning: Overfitting , underfitting, and regularizationDeep learning: Overfitting , underfitting, and regularization
Deep learning: Overfitting , underfitting, and regularizationAly Abdelkareem
 
Unsupervised learning: Clustering
Unsupervised learning: ClusteringUnsupervised learning: Clustering
Unsupervised learning: ClusteringDeepak George
 
Lecture 6: Ensemble Methods
Lecture 6: Ensemble Methods Lecture 6: Ensemble Methods
Lecture 6: Ensemble Methods Marina Santini
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural networkDEEPASHRI HK
 
Bias and variance trade off
Bias and variance trade offBias and variance trade off
Bias and variance trade offVARUN KUMAR
 
Outlier detection by Ueda's method
Outlier detection by Ueda's methodOutlier detection by Ueda's method
Outlier detection by Ueda's methodPOOJA PATIL
 
Decision Tree - C4.5&CART
Decision Tree - C4.5&CARTDecision Tree - C4.5&CART
Decision Tree - C4.5&CARTXueping Peng
 

What's hot (20)

Ensemble learning
Ensemble learningEnsemble learning
Ensemble learning
 
Introduction to Linear Discriminant Analysis
Introduction to Linear Discriminant AnalysisIntroduction to Linear Discriminant Analysis
Introduction to Linear Discriminant Analysis
 
Soft computing
Soft computingSoft computing
Soft computing
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Feature Engineering & Selection
Feature Engineering & SelectionFeature Engineering & Selection
Feature Engineering & Selection
 
NLP
NLPNLP
NLP
 
What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
 
CART – Classification & Regression Trees
CART – Classification & Regression TreesCART – Classification & Regression Trees
CART – Classification & Regression Trees
 
Genetik Algoritma & Programlama (Dr.Hakan Erdun)
Genetik Algoritma & Programlama (Dr.Hakan Erdun)Genetik Algoritma & Programlama (Dr.Hakan Erdun)
Genetik Algoritma & Programlama (Dr.Hakan Erdun)
 
Deep learning: Overfitting , underfitting, and regularization
Deep learning: Overfitting , underfitting, and regularizationDeep learning: Overfitting , underfitting, and regularization
Deep learning: Overfitting , underfitting, and regularization
 
Unsupervised learning: Clustering
Unsupervised learning: ClusteringUnsupervised learning: Clustering
Unsupervised learning: Clustering
 
Lecture 6: Ensemble Methods
Lecture 6: Ensemble Methods Lecture 6: Ensemble Methods
Lecture 6: Ensemble Methods
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Bias and variance trade off
Bias and variance trade offBias and variance trade off
Bias and variance trade off
 
Outlier detection by Ueda's method
Outlier detection by Ueda's methodOutlier detection by Ueda's method
Outlier detection by Ueda's method
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
Decision Tree - C4.5&CART
Decision Tree - C4.5&CARTDecision Tree - C4.5&CART
Decision Tree - C4.5&CART
 
Hamiltonian path
Hamiltonian pathHamiltonian path
Hamiltonian path
 

Viewers also liked

Jose_TH1_T09_5.ppt
Jose_TH1_T09_5.pptJose_TH1_T09_5.ppt
Jose_TH1_T09_5.pptgrssieee
 
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.pptgrssieee
 
Subspace_Discriminant_Approach_Hyperspectral.ppt
Subspace_Discriminant_Approach_Hyperspectral.pptSubspace_Discriminant_Approach_Hyperspectral.ppt
Subspace_Discriminant_Approach_Hyperspectral.pptgrssieee
 
Signal Processing Course : Compressed Sensing
Signal Processing Course : Compressed SensingSignal Processing Course : Compressed Sensing
Signal Processing Course : Compressed SensingGabriel 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 nurseryRai University
 
Learning Sparse Representation
Learning Sparse RepresentationLearning Sparse Representation
Learning Sparse RepresentationGabriel Peyré
 
Components Of Executive Information System
Components Of Executive Information SystemComponents Of Executive Information System
Components Of Executive Information SystemTheju Paul
 
Trade finance post and pre shipment
Trade finance post and pre shipmentTrade finance post and pre shipment
Trade finance post and pre shipmentStudsPlanet.com
 
C. executive information systems
C. executive information systemsC. executive information systems
C. executive information systemsgohilrajdipsinh
 
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
 
Competitive advantage
Competitive advantageCompetitive advantage
Competitive advantageMohit Singla
 

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

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
 
Decision Tree in Machine Learning
Decision Tree in Machine Learning  Decision Tree in Machine Learning
Decision Tree in Machine Learning Souma Maiti
 
Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees Kush Kulshrestha
 
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 agricultureAboul Ella Hassanien
 
From decision trees to random forests
From decision trees to random forestsFrom decision trees to random forests
From decision trees to random forestsViet-Trung TRAN
 
Decision Tree.pptx
Decision Tree.pptxDecision Tree.pptx
Decision Tree.pptxkibriaswe
 
04 Classification in Data Mining
04 Classification in Data Mining04 Classification in Data Mining
04 Classification in Data MiningValerii 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.pptxPriyadharshiniG41
 
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.pdfAdityaSoraut
 
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 lectureShreyas S K
 
Decision Trees
Decision TreesDecision Trees
Decision TreesStudent
 
22 Machine Learning Feature Selection
22 Machine Learning Feature Selection22 Machine Learning Feature Selection
22 Machine Learning Feature SelectionAndres Mendez-Vazquez
 

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
 
Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees
 
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
Decision treeDecision tree
Decision tree
 
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
 

Recently uploaded

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

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