|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweka.experiment.ClassifierSplitEvaluator
weka.experiment.CostSensitiveClassifierSplitEvaluator
A SplitEvaluator that produces results for a classification scheme on a nominal class attribute, including weighted misclassification costs.
| Constructor Summary | |
CostSensitiveClassifierSplitEvaluator()
|
|
| Method Summary | |
java.io.File |
getOnDemandDirectory()
Returns the directory that will be searched for cost files when loading on demand. |
java.lang.String[] |
getOptions()
Gets the current settings of 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.. |
java.lang.String |
onDemandDirectoryTipText()
Returns the tip text for this property |
void |
setOnDemandDirectory(java.io.File newDir)
Sets the directory that will be searched for cost files when loading on demand. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
java.lang.String |
toString()
Returns a text description of the split evaluator. |
| Methods inherited from class weka.experiment.ClassifierSplitEvaluator |
classifierTipText, enumerateMeasures, getAttributeID, getClassForIRStatistics, getClassifier, getKey, getKeyNames, getKeyTypes, getMeasure, getPredTargetColumn, getRawResultOutput, setAdditionalMeasures, setAttributeID, setClassForIRStatistics, setClassifier, setClassifierName, setPredTargetColumn |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CostSensitiveClassifierSplitEvaluator()
| Method Detail |
public java.lang.String globalInfo()
globalInfo in class ClassifierSplitEvaluatorpublic java.util.Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class ClassifierSplitEvaluator
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-D directory
Name of a directory to search for cost files when loading costs on demand
(default current directory).
All option after -- will be passed to the classifier.
setOptions in interface OptionHandlersetOptions in class ClassifierSplitEvaluatoroptions - 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 ClassifierSplitEvaluatorpublic java.lang.String onDemandDirectoryTipText()
public java.io.File getOnDemandDirectory()
public void setOnDemandDirectory(java.io.File newDir)
newDir - The cost file search directory.public java.lang.Object[] getResultTypes()
getResultTypes in interface SplitEvaluatorgetResultTypes in class ClassifierSplitEvaluatorpublic java.lang.String[] getResultNames()
getResultNames in interface SplitEvaluatorgetResultNames in class ClassifierSplitEvaluator
public java.lang.Object[] getResult(Instances train,
Instances test)
throws java.lang.Exception
getResult in interface SplitEvaluatorgetResult in class ClassifierSplitEvaluatortrain - the training Instances.test - the testing Instances.
java.lang.Exception - if a problem occurs while getting the resultspublic java.lang.String toString()
toString in class ClassifierSplitEvaluator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||