|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.experiment.ClassifierSplitEvaluator | +--weka.experiment.CostSensitiveClassifierSplitEvaluator
A SplitEvaluator that produces results for a classification scheme on a nominal class attribute, including weighted misclassification costs.
Field Summary | |
protected File |
m_OnDemandDirectory
The directory used when loading cost files on demand, null indicates current directory |
Fields inherited from class weka.experiment.ClassifierSplitEvaluator |
m_AdditionalMeasures, m_Classifier, m_ClassifierOptions, m_ClassifierVersion, m_doesProduce, m_numberAdditionalMeasures, m_result |
Constructor Summary | |
CostSensitiveClassifierSplitEvaluator()
|
Method Summary | |
File |
getOnDemandDirectory()
Returns the directory that will be searched for cost files when loading on demand. |
String[] |
getOptions()
Gets the current settings of the Classifier. |
Object[] |
getResult(Instances train,
Instances test)
Gets the results for the supplied train and test datasets. |
String[] |
getResultNames()
Gets the names of each of the result columns produced for a single run. |
Object[] |
getResultTypes()
Gets the data types of each of the result columns produced for a single run. |
String |
globalInfo()
Returns a string describing this split evaluator |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
String |
onDemandDirectoryTipText()
Returns the tip text for this property |
void |
setOnDemandDirectory(File newDir)
Sets the directory that will be searched for cost files when loading on demand. |
void |
setOptions(String[] options)
Parses a given list of options. |
String |
toString()
Returns a text description of the split evaluator. |
Methods inherited from class weka.experiment.ClassifierSplitEvaluator |
classifierTipText, enumerateMeasures, getClassForIRStatistics, getClassifier, getKey, getKeyNames, getKeyTypes, getMeasure, getRawResultOutput, setAdditionalMeasures, setClassForIRStatistics, setClassifier, setClassifierName, updateOptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected File m_OnDemandDirectory
Constructor Detail |
public CostSensitiveClassifierSplitEvaluator()
Method Detail |
public String globalInfo()
globalInfo
in class ClassifierSplitEvaluator
public Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class ClassifierSplitEvaluator
public void setOptions(String[] options) throws 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 OptionHandler
setOptions
in class ClassifierSplitEvaluator
options
- the list of options as an array of strings
Exception
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class ClassifierSplitEvaluator
public String onDemandDirectoryTipText()
public File getOnDemandDirectory()
public void setOnDemandDirectory(File newDir)
newDir
- The cost file search directory.public Object[] getResultTypes()
getResultTypes
in interface SplitEvaluator
getResultTypes
in class ClassifierSplitEvaluator
public String[] getResultNames()
getResultNames
in interface SplitEvaluator
getResultNames
in class ClassifierSplitEvaluator
public Object[] getResult(Instances train, Instances test) throws Exception
getResult
in interface SplitEvaluator
getResult
in class ClassifierSplitEvaluator
train
- the training Instances.test
- the testing Instances.
Exception
- if a problem occurs while getting the resultspublic String toString()
toString
in class ClassifierSplitEvaluator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |