O'Reilly logo

Ensemble Machine Learning by Ankit Dixit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Marital status

Table 2.12 shows us that there are three married and two unmarried persons in the medium-salaried subset. Two married persons are investors while only one unmarried investor is present. The summary of the calculation is:

Values

Y

N

Attribute entropy

M

2

1

0.9234

UM

1

1

1

Emarital = 0.9693

IGmarital = 0.0169

Table 2.14: A Summary of the Sex attribute for the Med salary group

Following is a summary table for the information gains of both the attributes:

Attribute

IG

Sex

0.0169

Marital

0.0169

Table 2.15: Information gain summary

Wait!!! What! Both the attributes have the same information gain! How is that possible? Yes, it is possible. If you look closely at Table ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required