|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.experiment.RegressionSplitEvaluator
A SplitEvaluator that produces results for a classification scheme on a numeric class attribute.
Field Summary | |
private static int |
KEY_SIZE
The length of a key |
protected java.lang.String[] |
m_AdditionalMeasures
The names of any additional measures to look for in SplitEvaluators |
protected Classifier |
m_Classifier
The classifier used for evaluation |
protected java.lang.String |
m_ClassifierOptions
The classifier options (if any) |
protected java.lang.String |
m_ClassifierVersion
The classifier version |
protected boolean[] |
m_doesProduce
Array of booleans corresponding to the measures in m_AdditionalMeasures indicating which of the AdditionalMeasures the current classifier can produce |
protected java.lang.String |
m_result
Holds the statistics for the most recent application of the classifier |
private static int |
RESULT_SIZE
The length of a result |
Constructor Summary | |
RegressionSplitEvaluator()
No args constructor. |
Method Summary | |
java.lang.String |
classifierTipText()
Returns the tip text for this property |
java.util.Enumeration |
enumerateMeasures()
Returns an enumeration of any additional measure names that might be in the classifier |
Classifier |
getClassifier()
Get the value of Classifier. |
java.lang.Object[] |
getKey()
Gets the key describing the current SplitEvaluator. |
java.lang.String[] |
getKeyNames()
Gets the names of each of the key columns produced for a single run. |
java.lang.Object[] |
getKeyTypes()
Gets the data types of each of the key columns produced for a single run. |
double |
getMeasure(java.lang.String additionalMeasureName)
Returns the value of the named measure |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier. |
java.lang.String |
getRawResultOutput()
Gets the raw output from the classifier |
java.lang.Object[] |
getResult(Instances train,
Instances test)
Gets the results for the supplied train and test datasets. |
java.lang.String[] |
getResultNames()
Gets the names of each of the result columns produced for a single run. |
java.lang.Object[] |
getResultTypes()
Gets the data types of each of the result columns produced for a single run. |
java.lang.String |
globalInfo()
Returns a string describing this split evaluator |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options.. |
void |
setAdditionalMeasures(java.lang.String[] additionalMeasures)
Set a list of method names for additional measures to look for in Classifiers. |
void |
setClassifier(Classifier newClassifier)
Sets the classifier. |
void |
setClassifierName(java.lang.String newClassifierName)
Set the Classifier to use, given it's class name. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
java.lang.String |
toString()
Returns a text description of the split evaluator. |
protected void |
updateOptions()
Updates the options that the current classifier is using. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Classifier m_Classifier
protected java.lang.String[] m_AdditionalMeasures
protected boolean[] m_doesProduce
protected java.lang.String m_result
protected java.lang.String m_ClassifierOptions
protected java.lang.String m_ClassifierVersion
private static final int KEY_SIZE
private static final int RESULT_SIZE
Constructor Detail |
public RegressionSplitEvaluator()
Method Detail |
public java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-W classname
Specify the full class name of the classifier to evaluate.
All option after -- will be passed to the classifier.
setOptions
in interface OptionHandler
options
- 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 OptionHandler
public void setAdditionalMeasures(java.lang.String[] additionalMeasures)
setAdditionalMeasures
in interface SplitEvaluator
additionalMeasures
- an array of method names.public java.util.Enumeration enumerateMeasures()
enumerateMeasures
in interface AdditionalMeasureProducer
public double getMeasure(java.lang.String additionalMeasureName)
getMeasure
in interface AdditionalMeasureProducer
additionalMeasureName
- the name of the measure to query for its value
java.lang.IllegalArgumentException
- if the named measure is not supportedpublic java.lang.Object[] getKeyTypes()
getKeyTypes
in interface SplitEvaluator
public java.lang.String[] getKeyNames()
getKeyNames
in interface SplitEvaluator
public java.lang.Object[] getKey()
getKey
in interface SplitEvaluator
public java.lang.Object[] getResultTypes()
getResultTypes
in interface SplitEvaluator
public java.lang.String[] getResultNames()
getResultNames
in interface SplitEvaluator
public java.lang.Object[] getResult(Instances train, Instances test) throws java.lang.Exception
getResult
in interface SplitEvaluator
train
- the training Instances.test
- the testing Instances.
java.lang.Exception
- if a problem occurs while getting the resultspublic java.lang.String classifierTipText()
public Classifier getClassifier()
public void setClassifier(Classifier newClassifier)
newClassifier
- the new classifier to use.protected void updateOptions()
public void setClassifierName(java.lang.String newClassifierName) throws java.lang.Exception
java.lang.Exception
- if the class name is invalid.public java.lang.String getRawResultOutput()
getRawResultOutput
in interface SplitEvaluator
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |