Skip to content

Apoorva-jain/Decision-Tree-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Decision-Tree-Implementation

Decision Tree Implementation: Building actual decision tree for the Iris dataset and then printing it.

Dataset: Iris dataset. Implementation: Consider the decision tree for OR below: image

Expected Output: Level 0 Count of 0(False) = 1 Count of 1(True) = 3 Current Entropy is = 0.811278124459 Splitting on feature X1 with gain ratio 0.311278124459

Level 1 Count of 0 = 1 Count of 1 = 1 Current Entropy is = 1.0 Splitting on feature X2 with gain ratio 1.0

Level 2 Count of 0 = 1 Current Entropy is = 0.0 Reached leaf Node

Level 2 Count of 1 = 1 Current Entropy is = 0.0 Reached leaf Node

Level 1 Count of 1 = 2 Current Entropy is = 0.0 Reached leaf Node

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published