Package weka.classifiers.functions
Class IsotonicRegression
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.functions.IsotonicRegression
- All Implemented Interfaces:
Serializable
,Cloneable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,WeightedInstancesHandler
Learns an isotonic regression model. Picks the attribute that results in the lowest squared error. Missing values are not allowed. Can only deal with numeric attributes.Considers the monotonically increasing case as well as the monotonicallydecreasing case
Valid options are:
-D If set, classifier is run in debug mode and may output additional info to the console
- Version:
- $Revision: 5523 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildClassifier
(Instances insts) Builds an isotonic regression model given the supplied training data.double
classifyInstance
(Instance inst) Generate a prediction for the supplied instance.Returns default capabilities of the classifier.Returns the revision string.Returns a string describing this classifierstatic void
Main method for testing this classtoString()
Returns a description of this classifier as a stringMethods inherited from class weka.classifiers.Classifier
debugTipText, distributionForInstance, forName, getDebug, getOptions, listOptions, makeCopies, makeCopy, setDebug, setOptions
-
Constructor Details
-
IsotonicRegression
public IsotonicRegression()
-
-
Method Details
-
globalInfo
Returns a string describing this classifier- Returns:
- a description of the classifier suitable for displaying in the explorer/experimenter gui
-
classifyInstance
Generate a prediction for the supplied instance.- Overrides:
classifyInstance
in classClassifier
- Parameters:
inst
- the instance to predict.- Returns:
- the prediction
- Throws:
Exception
- if an error occurs
-
getCapabilities
Returns default capabilities of the classifier.- Specified by:
getCapabilities
in interfaceCapabilitiesHandler
- Overrides:
getCapabilities
in classClassifier
- Returns:
- the capabilities of this classifier
- See Also:
-
buildClassifier
Builds an isotonic regression model given the supplied training data.- Specified by:
buildClassifier
in classClassifier
- Parameters:
insts
- the training data.- Throws:
Exception
- if an error occurs
-
toString
Returns a description of this classifier as a string -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classClassifier
- Returns:
- the revision
-
main
Main method for testing this class- Parameters:
argv
- options
-