|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.Classifier
weka.classifiers.SingleClassifierEnhancer
weka.classifiers.meta.OrdinalClassClassifier
public class OrdinalClassClassifier
Meta classifier for transforming an ordinal class problem to a series of binary class problems. For more information see:
Frank, E. and Hall, M. (in press). A simple approach to ordinal prediction. 12th European Conference on Machine Learning. Freiburg, Germany.
Valid options are:
-W classname
Specify the full class name of a learner as the basis for
the ordinalclassclassifier (required).
OptionHandler,
Serialized Form| Constructor Summary | |
|---|---|
OrdinalClassClassifier()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
buildClassifier(Instances insts)
Builds the classifiers. |
double[] |
distributionForInstance(Instance inst)
Returns the distribution for an instance. |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier. |
java.lang.String |
globalInfo()
Returns a string describing this attribute evaluator |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
java.lang.String |
toString()
Prints the classifiers. |
| Methods inherited from class weka.classifiers.SingleClassifierEnhancer |
|---|
classifierTipText, getClassifier, setClassifier |
| Methods inherited from class weka.classifiers.Classifier |
|---|
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebug |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OrdinalClassClassifier()
| Method Detail |
|---|
public java.lang.String globalInfo()
public void buildClassifier(Instances insts)
throws java.lang.Exception
buildClassifier in class Classifierinsts - the training data.
java.lang.Exception - if a classifier can't be built
public double[] distributionForInstance(Instance inst)
throws java.lang.Exception
distributionForInstance in class Classifierinst - the instance to be classified
java.lang.Exception - if the distribution can't be computed successfullypublic java.util.Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class SingleClassifierEnhancer
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-W classname
Specify the full class name of a learner as the basis for
the ordinalclassclassifier (required).
setOptions in interface OptionHandlersetOptions in class SingleClassifierEnhanceroptions - the list of options as an array of strings
java.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class SingleClassifierEnhancerpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] argv)
argv - the options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||