All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.classifiers.meta.OrdinalClassClassifier
java.lang.Object
|
+----weka.classifiers.Classifier
|
+----weka.classifiers.DistributionClassifier
|
+----weka.classifiers.meta.OrdinalClassClassifier
- public class OrdinalClassClassifier
- extends DistributionClassifier
- implements OptionHandler
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).
- Version:
- $Revision 1.0 $
- Author:
- Mark Hall
- See Also:
- DistributionClassifier, OptionHandler
OrdinalClassClassifier()
-
buildClassifier(Instances)
- Builds the classifiers.
distributionClassifierTipText()
-
distributionForInstance(Instance)
- Returns the distribution for an instance.
getDistributionClassifier()
- Get the classifier used as the classifier
getOptions()
- Gets the current settings of the Classifier.
globalInfo()
- Returns a string describing this attribute evaluator
listOptions()
- Returns an enumeration describing the available options.
main(String[])
- Main method for testing this class.
setDistributionClassifier(DistributionClassifier)
- Set the base classifier.
setOptions(String[])
- Parses a given list of options.
toString()
- Prints the classifiers.
OrdinalClassClassifier
public OrdinalClassClassifier()
globalInfo
public java.lang.String globalInfo()
Returns a string describing this attribute evaluator
- Returns:
- a description of the evaluator suitable for
displaying in the explorer/experimenter gui
buildClassifier
public void buildClassifier(Instances insts) throws java.lang.Exception
Builds the classifiers.
- Parameters:
insts - the training data.
- Throws:
- java.lang.Exception - if a classifier can't be built
- Overrides:
- buildClassifier in class Classifier
distributionForInstance
public double[] distributionForInstance(Instance inst) throws java.lang.Exception
Returns the distribution for an instance.
- Throws:
- java.lang.Exception - if the distribution can't be computed successfully
- Overrides:
- distributionForInstance in class DistributionClassifier
listOptions
public java.util.Enumeration listOptions()
Returns an enumeration describing the available options.
- Returns:
- an enumeration of all the available options.
setOptions
public void setOptions(java.lang.String options[]) throws java.lang.Exception
Parses a given list of options. Valid options are:
-W classname
Specify the full class name of a learner as the basis for
the ordinalclassclassifier (required).
- Parameters:
options - the list of options as an array of strings
- Throws:
- java.lang.Exception - if an option is not supported
getOptions
public java.lang.String[] getOptions()
Gets the current settings of the Classifier.
- Returns:
- an array of strings suitable for passing to setOptions
distributionClassifierTipText
public java.lang.String distributionClassifierTipText()
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setDistributionClassifier
public void setDistributionClassifier(DistributionClassifier newClassifier)
Set the base classifier.
- Parameters:
newClassifier - the Classifier to use.
getDistributionClassifier
public DistributionClassifier getDistributionClassifier()
Get the classifier used as the classifier
- Returns:
- the classifier used as the classifier
toString
public java.lang.String toString()
Prints the classifiers.
- Overrides:
- toString in class java.lang.Object
main
public static void main(java.lang.String argv[])
Main method for testing this class.
- Parameters:
argv - the options
All Packages Class Hierarchy This Package Previous Next Index WEKA's home