Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRUpdateable && HoeffdingTree #57

Open
Mali-DS opened this issue Nov 7, 2018 · 2 comments
Open

CRUpdateable && HoeffdingTree #57

Mali-DS opened this issue Nov 7, 2018 · 2 comments

Comments

@Mali-DS
Copy link

Mali-DS commented Nov 7, 2018

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

@jmread
Copy link
Contributor

jmread commented Nov 8, 2018

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

Best,

Jesse

@Mali-DS
Copy link
Author

Mali-DS commented Nov 8, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants