weka.classifiers
Interface Sourcable
-
- All Known Implementing Classes:
- AdaBoostM1, DecisionStump, J48, LogitBoost, OneR, REPTree, ZeroR
public interface SourcableInterface for classifiers that can be converted to Java source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringtoSource(java.lang.String className)Returns a string that describes the classifier as source.
-
-
-
Method Detail
-
toSource
java.lang.String toSource(java.lang.String className) throws java.lang.ExceptionReturns a string that describes the classifier as source. The classifier will be contained in a class with the given name (there may be auxiliary classes), and will contain a method with the signature:
where the arraypublic static double classify(Object [] i);icontains elements that are either Double, String, with missing values represented as null. The generated code is public domain and comes with no warranty.- Parameters:
className- the name that should be given to the source class.- Returns:
- the object source described by a string
- Throws:
java.lang.Exception- if the source can't be computed
-
-
DataMelt 3.0 © DataMelt by jWork.ORG