0% found this document useful (0 votes)
34 views1 page

j48 Decision Tree

The document appears to be a decision tree for classifying iris flower types. It includes metrics like gini and sample sizes at each node and predicts class values. The tree splits the data based on petal and sepal attributes like length, width and compares values at each node.

Uploaded by

ANJALI PATEL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

j48 Decision Tree

The document appears to be a decision tree for classifying iris flower types. It includes metrics like gini and sample sizes at each node and predicts class values. The tree splits the data based on petal and sepal attributes like length, width and compares values at each node.

Uploaded by

ANJALI PATEL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

petal length (cm) <= 2.

45
gini = 0.664
samples = 105
value = [31, 37, 37]
False
True

petal length (cm) <= 4.75


gini = 0.0
gini = 0.5
samples = 31
samples = 74
value = [31, 0, 0]
value = [0, 37, 37]

petal width (cm) <= 1.6 petal width (cm) <= 1.75
gini = 0.059 gini = 0.214
samples = 33 samples = 41
value = [0, 32, 1] value = [0, 5, 36]

petal length (cm) <= 4.95 petal length (cm) <= 4.85
gini = 0.0 gini = 0.0
gini = 0.5 gini = 0.059
samples = 32 samples = 1
samples = 8 samples = 33
value = [0, 32, 0] value = [0, 0, 1]
value = [0, 4, 4] value = [0, 1, 32]

petal width (cm) <= 1.55 sepal width (cm) <= 3.1
gini = 0.0 gini = 0.0
gini = 0.444 gini = 0.444
samples = 2 samples = 30
samples = 6 samples = 3
value = [0, 2, 0] value = [0, 0, 30]
value = [0, 2, 4] value = [0, 1, 2]

petal length (cm) <= 5.45


gini = 0.0 gini = 0.0 gini = 0.0
gini = 0.444
samples = 3 samples = 2 samples = 1
samples = 3
value = [0, 0, 3] value = [0, 0, 2] value = [0, 1, 0]
value = [0, 2, 1]

gini = 0.0 gini = 0.0


samples = 2 samples = 1
value = [0, 2, 0] value = [0, 0, 1]

You might also like