Waikato / moa

MOA is an open source framework for Big Data stream mining. It includes a collection of machine learning algorithms (classification, regression, clustering, outlier detection, concept drift detection and recommender systems) and tools for evaluation.
http://moa.cms.waikato.ac.nz/
GNU General Public License v3.0
609 stars 353 forks source link

Selecting wrong branch HoeffdingTree using wrong split attribute index #175

Closed ugur-koc closed 3 years ago

ugur-koc commented 5 years ago

The commented out code at line 44&45 of moa.classifiers.core.conditionaltests.NominalAttributeMultiwayTest.branchForInstance(Instance) should be put back in. As it is, a wrong split attribute is selected for selecting the branch. For me, my class index is 32 and the split attribute index should be 33. But it branchForInstance actually returns 32 which is the class index and thus I get perfect accuracy. Attached training and test data files. 'label' is the class. sampledata_class_label.zip

abifet commented 3 years ago

It seems that the problem is related to the fact that the class attribute is not the last one.