1

I'm using rules generated by classifiers from weka. These rules are generated in one String by Weka and in each different case of rules I have to implement each one (i.e manually, in Java). I think that maybe there is a better way to do this process, maybe using an API.

One way that I could do it is treat the String that is generated by the classifier that represents the rules (class ClassifierTree). But I think that could have some easiest way.

Anyone could help me?

Regards,

Bruno Moreno

1

1 Answer 1

1

If your classifier supports it, you may get java code for trained classifier. Look to following answer option three. Following excerpt is from Weka Wiki Generating source code from WEKA classes:

All classifiers implementing the weka.classifiers.Sourcable interface 
can turn their model into Java source code 
(check the Javadoc of this interface for all the classifiers implementing it).
Sign up to request clarification or add additional context in comments.

1 Comment

It is exactaly what I want, @atilla-ozgur, I try do it. Thank you so much!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.