Introduction - If you have any usage issues, please Google them yourself
Write code to calculate the information gain.SplitDataSet function is used to select the feature subset, such as the choice of age (0) young (0), we can call splitDataSet (dataSet, 0, 0) returns a subset of the five data sets is the age of youth. ChooseBestFeatureToSplit is a function that selects the best features.