meka icon indicating copy to clipboard operation
meka copied to clipboard

CRUpdateable && HoeffdingTree

Open Mali-DS opened this issue 7 years ago • 2 comments

Hi, I am trying to use CRUpdateable for Multi target regression, and I found the CRUpdateable 's default classifier is HoeffdingTree, but when I call method as buildClassifier, it gives me this error:

weka.core.UnsupportedAttributeTypeException: weka.classifiers.bayes.NaiveBayesUpdateable: Cannot handle numeric class!

my code is here 👍 CRUpdateable classifier = new CRUpdateable(); HoeffdingTree ht = new HoeffdingTree(); classifier.setClassifier(ht); classifier.buildClassifier(trainingInstances);

If the HoeffdingTree is not for regression why it is default classifier in CRUpdateable, and if it is for regression why it doesn't work?

Thanks Mali

Mali-DS avatar Nov 07 '18 22:11 Mali-DS

Indeed, Meka does not explicitly support regression yet. Note that CR = Classifier Relevance, and 'buildClassifier' indicates it is building a classifier.

Best,

Jesse

jmread avatar Nov 08 '18 08:11 jmread

Hi Jesse, Thanks for your reply, As I know Meka recently added MultiTargetClassifier to support regression, and CRUpdateable is one of classes to go in this way:( also it has MultiLabelClassifier to support classification)

public class CRUpdateable extends CR implements IncrementalMultiTargetClassifier

Regards, Mali

Mali-DS avatar Nov 08 '18 09:11 Mali-DS