SlideShare a Scribd company logo
1 of 33
Decision tree knowledge discovery through neural Networks
Presented by: Jaskaran Kaur
Decision tree
 Decision Tree Mining is a type of data mining technique that is used to
build Classification Models.
 It builds classification models in the form of a tree-like structure, just like
its name. This type of mining belongs to supervised class learning.
 In supervised learning, the target result is already known.
 Decision trees can be used for both categorical and numerical data.
 The categorical data represent gender, marital status, etc. while the
numerical data represent age, temperature, etc.
Continued…….
 It is a tree-structured classifier, where internal nodes represent the
features of a dataset, branches represent the decision rules and each leaf
node represents the outcome.
 In a Decision tree, there are two nodes, which are the Decision
Node and Leaf Node.
 Decision nodes are used to make any decision and have multiple
branches whereas
 Leaf nodes are the output of those decisions and do not contain any
further branches.
 It is a graphical representation for getting all the possible solutions to a
problem/decision based on given conditions.
 It is called a decision tree because, similar to a tree, it starts with the root
node, which expands on further branches and constructs a tree-like
structure.
 In order to build a tree, we use the CART algorithm, which stands
for Classification and Regression Tree algorithm.
 A decision tree simply asks a question, and based on the answer
(Yes/No), it further split the tree into subtrees.
General structure of a decision tree:
Decision Tree Terminologies
 Root Node: Root node is from where the decision tree starts. It represents the
entire dataset, which further gets divided into two or more homogeneous sets.
 Leaf Node: Leaf nodes are the final output node, and the tree cannot be
segregated further after getting a leaf node.
 Splitting: Splitting is the process of dividing the decision node/root node into
sub-nodes according to the given conditions.
 Branch/Sub Tree: A tree formed by splitting the tree.
 Pruning: Pruning is the process of removing the unwanted branches from the
tree.
 Parent/Child node: The root node of the tree is called the parent node, and
other nodes are called the child nodes.
How does the Decision Tree algorithm Work?
 In a decision tree, for predicting the class of the given dataset, the
algorithm starts from the root node of the tree.
 This algorithm compares the values of root attribute with the record
(real dataset) attribute and, based on the comparison, follows the branch
and jumps to the next node.
 For the next node, the algorithm again compares the attribute value with
the other sub-nodes and move further. It continues the process until it
reaches the leaf node of the tree.
Example: Suppose there is a candidate who has a job offer and wants to
decide whether he should accept the offer or Not.
Attribute Selection Measures
 While implementing a Decision tree, the main issue arises that how to
select the best attribute for the root node and for sub-nodes.
 So, to solve such problems there is a technique which is called
as Attribute selection measure or ASM.
 By this measurement, we can easily select the best attribute for the nodes
of the tree.
Key factors:
1. Entropy:
 Entropy refers to a common way to measure impurity. In the decision
tree, it measures the randomness or impurity in data sets.
Formula:
 Entropy can be calculated as:
Entropy(s)= -P(yes)log2 P(yes)- P(no) log2 P(no)
Where,
 S= Total number of samples
 P(yes)= probability of yes
 P(no)= probability of no
2. Information Gain:
 Information gain is the measurement of changes in entropy after the
segmentation of a dataset based on an attribute.
 It calculates how much information a feature provides us about a class.
 According to the value of information gain, we split the node and build
the decision tree.
 It is also called Entropy Reduction.
 A decision tree algorithm always tries to maximize the value of
information gain, and a node/attribute having the highest information
gain is split first.
Formula:
 It can be calculated using the below formula:
Information Gain= Entropy(S)- [(Weighted Avg) *Entropy(each feature)
Relation between Entropy and Information Gain:
 Inverse
 If information gain increases entropy decreases and vice versa.
Use:
 It is used to represent rules or generate rules
 Easy to understand.
 Visually define the rules which are simple to interpretation and
understand.
Neural network
 An artificial neural network (ANN), usually called "neural network"
(NN), is a mathematical model or computational model that tries to
simulate the structure and/or functional aspects of biological neural
networks.
Neural Network
 The term "Artificial Neural Network" is derived from Biological neural
networks that develop the structure of a human brain.
 Similar to the human brain that has neurons interconnected to one
another, artificial neural networks also have neurons that are
interconnected to one another in various layers of the networks.
 These neurons are known as nodes.
 An Artificial Neural Network in the field of Artificial
intelligence where it attempts to mimic the network of neurons makes
up a human brain So that computers will have an option to understand
things and make decisions in a human-like manner.
Continued….
 The artificial neural network is designed by programming computers to
behave simply like interconnected brain cells.
 There are around 1000 billion neurons in the human brain. Each neuron
has an association point somewhere in the range of 1,000 and 100,000.
 In the human brain, data is stored in such a manner as to be distributed,
and we can extract more than one piece of this data when necessary
from our memory parallelly.
 We can say that the human brain is made up of incredibly amazing
parallel processors.
Example:
We can understand the artificial neural network with an example,
 Consider an example of a digital logic gate that takes an input and gives an output.
 "OR" gate, which takes two inputs. If one or both the inputs are "On," then we get
"On" in output.
 If both the inputs are "Off," then we get "Off" in output.
 Here the output depends upon input. Our brain does not perform the same task.
 The outputs to inputs relationship keep changing because of the neurons in our brain,
which are "learning.“
*Artificial neural networks are trained using a training set.
Diagram of Biological Neural Network
The typical Artificial Neural Network looks something like the given figure.
Dendrites from Biological Neural Network represent inputs in Artificial Neural
Networks, cell nucleus represents Nodes, synapse represents Weights, and Axon
represents Output.
Relationship between Biological neural network and artificial
neural network:
Biological Neural
Network
Artificial Neural
Network
Dendrites Inputs
Cell nucleus Nodes
Synapse Weights
Axon Output
Neaural Network Components:
Example
The architecture of an artificial neural network:
 Artificial Neural Network primarily consists of three layers:
 Input Layer:
As the name suggests, it accepts inputs in several different formats provided by the
programmer.
 Hidden Layer:
The hidden layer presents in-between input and output layers. It performs all the
calculations to find hidden features and patterns.
 Output Layer:
The input goes through a series of transformations using the hidden layer, which
finally results in output that is conveyed using this layer.
In other words,
 The input layer receives data from the outside world which the neural network
needs to analyze or learn about.
 Then this data passes through one or multiple hidden layers that transform the
input into data that is valuable for the output layer.
 Finally, the output layer provides an output in the form of a response of the
Artificial Neural Networks to input data provided.
Advantages of Artificial Neural Network (ANN)
 Parallel processing capability: Artificial neural networks have a
numerical value that can perform more than one task simultaneously.
 Storing data on the entire network: Data that is used in traditional
programming is stored on the whole network, not on a database. The
disappearance of a couple of pieces of data in one place doesn't prevent
the network from working.
 Capability to work with incomplete knowledge: After ANN training,
the information may produce output even with inadequate data. The loss
of performance here relies upon the significance of missing data.
Applications of Artificial Neural Networks
 Social Media
 Marketing and Sales
 Healthcare
 Personal Assistants
Decision Trees vs. Neural Networks
 Two popular data modeling techniques are Decision Trees, also called classification trees
and Neural Networks.
 These two data modeling techniques are very different from the way they look to the
way they find relationship within variables.
 The neural network is an assembly of nodes, looks somewhat like the human brain.
 While the decision tree is an easy to follow top down approach of looking at the data.
 Neural networks are often compared to decision trees because both methods can model
data that has nonlinear relationships between variables, and both can handle interactions
between variables. However, neural networks have a number of drawbacks compared to
decision trees.
Diagram
Decision Trees
 Decision trees have an easy to follow natural flow. They are also easy to
program for computer systems with IF, THEN, ELSE statements.
 We can see that the top node in the tree is the most influential piece of
data that affects the response variable in the model. Because these trees
are so easy to understand, they are very useful as modeling techniques
and provide visual representations of the data.
Neural Networks
 The neural network is not so easy to understand from the visual
representation. It is very difficult to create computer systems from them,
and almost impossible to create an explanation from the model. Neural
networks can handle binary data better than decision trees but cannot
handle categorical values.
 Neural Network achieve 99% accuracy on a data set while the decision
tree model only achieved 86% accuracy on the same data set. The best
fitted model is the one that most accurately fits your data.
Thank You

More Related Content

What's hot

Decision tree lecture 3
Decision tree lecture 3Decision tree lecture 3
Decision tree lecture 3Laila Fatehy
 
Feature selection
Feature selectionFeature selection
Feature selectionDong Guo
 
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 LearningKuppusamy P
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningRahul Jain
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data miningKamal Acharya
 
Types of Machine Learning
Types of Machine LearningTypes of Machine Learning
Types of Machine LearningSamra Shahzadi
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision treesKnoldus Inc.
 
2.1 Data Mining-classification Basic concepts
2.1 Data Mining-classification Basic concepts2.1 Data Mining-classification Basic concepts
2.1 Data Mining-classification Basic conceptsKrish_ver2
 
Regression, Bayesian Learning and Support vector machine
Regression, Bayesian Learning and Support vector machineRegression, Bayesian Learning and Support vector machine
Regression, Bayesian Learning and Support vector machineDr. Radhey Shyam
 
Decision Tree - ID3
Decision Tree - ID3Decision Tree - ID3
Decision Tree - ID3Xueping Peng
 
DBSCAN : A Clustering Algorithm
DBSCAN : A Clustering AlgorithmDBSCAN : A Clustering Algorithm
DBSCAN : A Clustering AlgorithmPınar Yahşi
 
K-means Clustering
K-means ClusteringK-means Clustering
K-means ClusteringAnna Fensel
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree LearningMilind Gokhale
 
Data mining technique (decision tree)
Data mining technique (decision tree)Data mining technique (decision tree)
Data mining technique (decision tree)Shweta Ghate
 

What's hot (20)

Decision tree lecture 3
Decision tree lecture 3Decision tree lecture 3
Decision tree lecture 3
 
Dbscan algorithom
Dbscan algorithomDbscan algorithom
Dbscan algorithom
 
ID3 ALGORITHM
ID3 ALGORITHMID3 ALGORITHM
ID3 ALGORITHM
 
Machine learning
Machine learningMachine learning
Machine learning
 
Feature selection
Feature selectionFeature selection
Feature selection
 
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
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data mining
 
Types of Machine Learning
Types of Machine LearningTypes of Machine Learning
Types of Machine Learning
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
 
2.1 Data Mining-classification Basic concepts
2.1 Data Mining-classification Basic concepts2.1 Data Mining-classification Basic concepts
2.1 Data Mining-classification Basic concepts
 
Presentation on K-Means Clustering
Presentation on K-Means ClusteringPresentation on K-Means Clustering
Presentation on K-Means Clustering
 
Regression, Bayesian Learning and Support vector machine
Regression, Bayesian Learning and Support vector machineRegression, Bayesian Learning and Support vector machine
Regression, Bayesian Learning and Support vector machine
 
Clustering
ClusteringClustering
Clustering
 
Backpropagation algo
Backpropagation  algoBackpropagation  algo
Backpropagation algo
 
Decision Tree - ID3
Decision Tree - ID3Decision Tree - ID3
Decision Tree - ID3
 
DBSCAN : A Clustering Algorithm
DBSCAN : A Clustering AlgorithmDBSCAN : A Clustering Algorithm
DBSCAN : A Clustering Algorithm
 
K-means Clustering
K-means ClusteringK-means Clustering
K-means Clustering
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
 
Data mining technique (decision tree)
Data mining technique (decision tree)Data mining technique (decision tree)
Data mining technique (decision tree)
 

Similar to Desicion tree and neural networks

Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees Kush Kulshrestha
 
Artificial Neural Networks: Applications In Management
Artificial Neural Networks: Applications In ManagementArtificial Neural Networks: Applications In Management
Artificial Neural Networks: Applications In ManagementIOSR Journals
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Amr Rashed
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning TutorialAmr Rashed
 
LearningAG.ppt
LearningAG.pptLearningAG.ppt
LearningAG.pptbutest
 
Swarm assignment 1
Swarm assignment 1Swarm assignment 1
Swarm assignment 1OmKushwaha7
 
SujanKhamrui_28100119050.pptx
SujanKhamrui_28100119050.pptxSujanKhamrui_28100119050.pptx
SujanKhamrui_28100119050.pptxPrakasBhowmik
 
Understanding Deep Learning & Parameter Tuning with MXnet, H2o Package in R
Understanding Deep Learning & Parameter Tuning with MXnet, H2o Package in RUnderstanding Deep Learning & Parameter Tuning with MXnet, H2o Package in R
Understanding Deep Learning & Parameter Tuning with MXnet, H2o Package in RManish Saraswat
 
Decision Trees for Classification: A Machine Learning Algorithm
Decision Trees for Classification: A Machine Learning AlgorithmDecision Trees for Classification: A Machine Learning Algorithm
Decision Trees for Classification: A Machine Learning AlgorithmPalin analytics
 
Neural net NWU 4.3 Graphics Course
Neural net NWU 4.3 Graphics CourseNeural net NWU 4.3 Graphics Course
Neural net NWU 4.3 Graphics CourseMohaiminur Rahman
 
Nature Inspired Reasoning Applied in Semantic Web
Nature Inspired Reasoning Applied in Semantic WebNature Inspired Reasoning Applied in Semantic Web
Nature Inspired Reasoning Applied in Semantic Webguestecf0af
 
Neural networks are parallel computing devices.docx.pdf
Neural networks are parallel computing devices.docx.pdfNeural networks are parallel computing devices.docx.pdf
Neural networks are parallel computing devices.docx.pdfneelamsanjeevkumar
 
Paper id 252014107
Paper id 252014107Paper id 252014107
Paper id 252014107IJRAT
 
Decision treeinductionmethodsandtheirapplicationtobigdatafinal 5
Decision treeinductionmethodsandtheirapplicationtobigdatafinal 5Decision treeinductionmethodsandtheirapplicationtobigdatafinal 5
Decision treeinductionmethodsandtheirapplicationtobigdatafinal 5ssuser33da69
 

Similar to Desicion tree and neural networks (20)

Neural Networks
Neural NetworksNeural Networks
Neural Networks
 
Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees Machine Learning Algorithm - Decision Trees
Machine Learning Algorithm - Decision Trees
 
Artificial Neural Networks: Applications In Management
Artificial Neural Networks: Applications In ManagementArtificial Neural Networks: Applications In Management
Artificial Neural Networks: Applications In Management
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning Tutorial
 
LearningAG.ppt
LearningAG.pptLearningAG.ppt
LearningAG.ppt
 
Artifical Neural Network
Artifical Neural NetworkArtifical Neural Network
Artifical Neural Network
 
Swarm assignment 1
Swarm assignment 1Swarm assignment 1
Swarm assignment 1
 
Neural Network
Neural NetworkNeural Network
Neural Network
 
SujanKhamrui_28100119050.pptx
SujanKhamrui_28100119050.pptxSujanKhamrui_28100119050.pptx
SujanKhamrui_28100119050.pptx
 
Understanding Deep Learning & Parameter Tuning with MXnet, H2o Package in R
Understanding Deep Learning & Parameter Tuning with MXnet, H2o Package in RUnderstanding Deep Learning & Parameter Tuning with MXnet, H2o Package in R
Understanding Deep Learning & Parameter Tuning with MXnet, H2o Package in R
 
Decision Tree.pptx
Decision Tree.pptxDecision Tree.pptx
Decision Tree.pptx
 
Decision Trees for Classification: A Machine Learning Algorithm
Decision Trees for Classification: A Machine Learning AlgorithmDecision Trees for Classification: A Machine Learning Algorithm
Decision Trees for Classification: A Machine Learning Algorithm
 
Deep learning
Deep learning Deep learning
Deep learning
 
Neural net NWU 4.3 Graphics Course
Neural net NWU 4.3 Graphics CourseNeural net NWU 4.3 Graphics Course
Neural net NWU 4.3 Graphics Course
 
Nature Inspired Reasoning Applied in Semantic Web
Nature Inspired Reasoning Applied in Semantic WebNature Inspired Reasoning Applied in Semantic Web
Nature Inspired Reasoning Applied in Semantic Web
 
ANN - UNIT 1.pptx
ANN - UNIT 1.pptxANN - UNIT 1.pptx
ANN - UNIT 1.pptx
 
Neural networks are parallel computing devices.docx.pdf
Neural networks are parallel computing devices.docx.pdfNeural networks are parallel computing devices.docx.pdf
Neural networks are parallel computing devices.docx.pdf
 
Paper id 252014107
Paper id 252014107Paper id 252014107
Paper id 252014107
 
Decision treeinductionmethodsandtheirapplicationtobigdatafinal 5
Decision treeinductionmethodsandtheirapplicationtobigdatafinal 5Decision treeinductionmethodsandtheirapplicationtobigdatafinal 5
Decision treeinductionmethodsandtheirapplicationtobigdatafinal 5
 

Recently uploaded

College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

Desicion tree and neural networks

  • 1. Decision tree knowledge discovery through neural Networks Presented by: Jaskaran Kaur
  • 2. Decision tree  Decision Tree Mining is a type of data mining technique that is used to build Classification Models.  It builds classification models in the form of a tree-like structure, just like its name. This type of mining belongs to supervised class learning.  In supervised learning, the target result is already known.  Decision trees can be used for both categorical and numerical data.  The categorical data represent gender, marital status, etc. while the numerical data represent age, temperature, etc.
  • 3. Continued…….  It is a tree-structured classifier, where internal nodes represent the features of a dataset, branches represent the decision rules and each leaf node represents the outcome.  In a Decision tree, there are two nodes, which are the Decision Node and Leaf Node.  Decision nodes are used to make any decision and have multiple branches whereas  Leaf nodes are the output of those decisions and do not contain any further branches.  It is a graphical representation for getting all the possible solutions to a problem/decision based on given conditions.
  • 4.  It is called a decision tree because, similar to a tree, it starts with the root node, which expands on further branches and constructs a tree-like structure.  In order to build a tree, we use the CART algorithm, which stands for Classification and Regression Tree algorithm.  A decision tree simply asks a question, and based on the answer (Yes/No), it further split the tree into subtrees.
  • 5. General structure of a decision tree:
  • 6. Decision Tree Terminologies  Root Node: Root node is from where the decision tree starts. It represents the entire dataset, which further gets divided into two or more homogeneous sets.  Leaf Node: Leaf nodes are the final output node, and the tree cannot be segregated further after getting a leaf node.  Splitting: Splitting is the process of dividing the decision node/root node into sub-nodes according to the given conditions.  Branch/Sub Tree: A tree formed by splitting the tree.  Pruning: Pruning is the process of removing the unwanted branches from the tree.  Parent/Child node: The root node of the tree is called the parent node, and other nodes are called the child nodes.
  • 7. How does the Decision Tree algorithm Work?  In a decision tree, for predicting the class of the given dataset, the algorithm starts from the root node of the tree.  This algorithm compares the values of root attribute with the record (real dataset) attribute and, based on the comparison, follows the branch and jumps to the next node.  For the next node, the algorithm again compares the attribute value with the other sub-nodes and move further. It continues the process until it reaches the leaf node of the tree.
  • 8. Example: Suppose there is a candidate who has a job offer and wants to decide whether he should accept the offer or Not.
  • 9. Attribute Selection Measures  While implementing a Decision tree, the main issue arises that how to select the best attribute for the root node and for sub-nodes.  So, to solve such problems there is a technique which is called as Attribute selection measure or ASM.  By this measurement, we can easily select the best attribute for the nodes of the tree.
  • 10. Key factors: 1. Entropy:  Entropy refers to a common way to measure impurity. In the decision tree, it measures the randomness or impurity in data sets.
  • 11. Formula:  Entropy can be calculated as: Entropy(s)= -P(yes)log2 P(yes)- P(no) log2 P(no) Where,  S= Total number of samples  P(yes)= probability of yes  P(no)= probability of no
  • 12. 2. Information Gain:  Information gain is the measurement of changes in entropy after the segmentation of a dataset based on an attribute.  It calculates how much information a feature provides us about a class.  According to the value of information gain, we split the node and build the decision tree.  It is also called Entropy Reduction.  A decision tree algorithm always tries to maximize the value of information gain, and a node/attribute having the highest information gain is split first.
  • 13. Formula:  It can be calculated using the below formula: Information Gain= Entropy(S)- [(Weighted Avg) *Entropy(each feature)
  • 14. Relation between Entropy and Information Gain:  Inverse  If information gain increases entropy decreases and vice versa.
  • 15. Use:  It is used to represent rules or generate rules  Easy to understand.  Visually define the rules which are simple to interpretation and understand.
  • 16. Neural network  An artificial neural network (ANN), usually called "neural network" (NN), is a mathematical model or computational model that tries to simulate the structure and/or functional aspects of biological neural networks.
  • 17. Neural Network  The term "Artificial Neural Network" is derived from Biological neural networks that develop the structure of a human brain.  Similar to the human brain that has neurons interconnected to one another, artificial neural networks also have neurons that are interconnected to one another in various layers of the networks.  These neurons are known as nodes.  An Artificial Neural Network in the field of Artificial intelligence where it attempts to mimic the network of neurons makes up a human brain So that computers will have an option to understand things and make decisions in a human-like manner.
  • 18. Continued….  The artificial neural network is designed by programming computers to behave simply like interconnected brain cells.  There are around 1000 billion neurons in the human brain. Each neuron has an association point somewhere in the range of 1,000 and 100,000.  In the human brain, data is stored in such a manner as to be distributed, and we can extract more than one piece of this data when necessary from our memory parallelly.  We can say that the human brain is made up of incredibly amazing parallel processors.
  • 19. Example: We can understand the artificial neural network with an example,  Consider an example of a digital logic gate that takes an input and gives an output.  "OR" gate, which takes two inputs. If one or both the inputs are "On," then we get "On" in output.  If both the inputs are "Off," then we get "Off" in output.  Here the output depends upon input. Our brain does not perform the same task.  The outputs to inputs relationship keep changing because of the neurons in our brain, which are "learning.“ *Artificial neural networks are trained using a training set.
  • 20. Diagram of Biological Neural Network
  • 21. The typical Artificial Neural Network looks something like the given figure. Dendrites from Biological Neural Network represent inputs in Artificial Neural Networks, cell nucleus represents Nodes, synapse represents Weights, and Axon represents Output.
  • 22. Relationship between Biological neural network and artificial neural network: Biological Neural Network Artificial Neural Network Dendrites Inputs Cell nucleus Nodes Synapse Weights Axon Output
  • 25. The architecture of an artificial neural network:  Artificial Neural Network primarily consists of three layers:  Input Layer: As the name suggests, it accepts inputs in several different formats provided by the programmer.
  • 26.  Hidden Layer: The hidden layer presents in-between input and output layers. It performs all the calculations to find hidden features and patterns.  Output Layer: The input goes through a series of transformations using the hidden layer, which finally results in output that is conveyed using this layer. In other words,  The input layer receives data from the outside world which the neural network needs to analyze or learn about.  Then this data passes through one or multiple hidden layers that transform the input into data that is valuable for the output layer.  Finally, the output layer provides an output in the form of a response of the Artificial Neural Networks to input data provided.
  • 27. Advantages of Artificial Neural Network (ANN)  Parallel processing capability: Artificial neural networks have a numerical value that can perform more than one task simultaneously.  Storing data on the entire network: Data that is used in traditional programming is stored on the whole network, not on a database. The disappearance of a couple of pieces of data in one place doesn't prevent the network from working.  Capability to work with incomplete knowledge: After ANN training, the information may produce output even with inadequate data. The loss of performance here relies upon the significance of missing data.
  • 28. Applications of Artificial Neural Networks  Social Media  Marketing and Sales  Healthcare  Personal Assistants
  • 29. Decision Trees vs. Neural Networks  Two popular data modeling techniques are Decision Trees, also called classification trees and Neural Networks.  These two data modeling techniques are very different from the way they look to the way they find relationship within variables.  The neural network is an assembly of nodes, looks somewhat like the human brain.  While the decision tree is an easy to follow top down approach of looking at the data.  Neural networks are often compared to decision trees because both methods can model data that has nonlinear relationships between variables, and both can handle interactions between variables. However, neural networks have a number of drawbacks compared to decision trees.
  • 31. Decision Trees  Decision trees have an easy to follow natural flow. They are also easy to program for computer systems with IF, THEN, ELSE statements.  We can see that the top node in the tree is the most influential piece of data that affects the response variable in the model. Because these trees are so easy to understand, they are very useful as modeling techniques and provide visual representations of the data.
  • 32. Neural Networks  The neural network is not so easy to understand from the visual representation. It is very difficult to create computer systems from them, and almost impossible to create an explanation from the model. Neural networks can handle binary data better than decision trees but cannot handle categorical values.  Neural Network achieve 99% accuracy on a data set while the decision tree model only achieved 86% accuracy on the same data set. The best fitted model is the one that most accurately fits your data.