|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--milk.classifiers.MIClassifier
Abstract classifier. All schemes for numeric or nominal prediction in Weka extend this class.
| Constructor Summary | |
MIClassifier()
|
|
| Method Summary | |
abstract void |
buildClassifier(Exemplars data)
Generates a classifier. |
double |
classifyExemplar(Exemplar example)
Classifies the given test instance. |
double[] |
distributionForExemplar(Exemplar example)
Predicts the class memberships for a given exemplar. |
static MIClassifier |
forName(java.lang.String classifierName,
java.lang.String[] options)
Creates a new instance of a classifier given it's class name and (optional) arguments to pass to it's setOptions method. |
static MIClassifier[] |
makeCopies(MIClassifier model,
int num)
Creates copies of the current classifier, which can then be used for boosting etc. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MIClassifier()
| Method Detail |
public abstract void buildClassifier(Exemplars data)
throws java.lang.Exception
data - set of exemplars serving as training data
java.lang.Exception - if the classifier has not been
generated successfully
public double[] distributionForExemplar(Exemplar example)
throws java.lang.Exception
example - the instance to be classified
java.lang.Exception - if distribution could not be
computed successfully
public double classifyExemplar(Exemplar example)
throws java.lang.Exception
example - the instance to be classified
java.lang.Exception - if an error occurred during the prediction
public static MIClassifier forName(java.lang.String classifierName,
java.lang.String[] options)
throws java.lang.Exception
classifierName - the fully qualified class name of the classifieroptions - an array of options suitable for passing to setOptions. May
be null.
java.lang.Exception - if the classifier name is invalid, or the options
supplied are not acceptable to the classifier
public static MIClassifier[] makeCopies(MIClassifier model,
int num)
throws java.lang.Exception
model - an example classifier to copynum - the number of classifiers copies to create.
java.lang.Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||