Splitting data set using information gain
2 次查看(过去 30 天)
显示 更早的评论
How find maximunm information gain and using this maximum information gain how can I split each row of my data set.
2 个评论
KSSV
2019-11-8
Can you elaborate? What is maximum information gain? What exactly you want to do with the data?
回答(1 个)
Shishir Singhal
2020-7-28
Hi,
I seems like you want to split your data into two sets in the basis of information gain.
Please refer to the file exchange link: https://in.mathworks.com/matlabcentral/fileexchange/14996-entropy
I only need to decide which column of your dataset is represented as a "class" i,e. target variable and which columns are represented as features. Use function "entropyF" to calculate the entropy of each feature variable with respect to "class" variable. Function "getBestEnt" return the index of the feature having highest information gain.
Hope it helps. !!!
Thanks
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!