public class CostSensitiveClassifierSplitEvaluator extends ClassifierSplitEvaluator
-W <class name> The full class name of the classifier. eg: weka.classifiers.bayes.NaiveBayes
-C <index> The index of the class for which IR statistics are to be output. (default 1)
-I <index> The index of an attribute to output in the results. This attribute should identify an instance in order to know which instances are in the test set of a cross validation. if 0 no output (default 0).
-P Add target and prediction columns to the result for each fold.
Options specific to classifier weka.classifiers.rules.ZeroR:
-D If set, classifier is run in debug mode and may output additional info to the console
-D <directory> Name of a directory to search for cost files when loading costs on demand (default current directory).All options after -- will be passed to the classifier.
| Constructor and Description |
|---|
CostSensitiveClassifierSplitEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getRevision()
Returns the revision string.
|
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.
|
classifierTipText, enumerateMeasures, getAttributeID, getClassForIRStatistics, getClassifier, getKey, getKeyNames, getKeyTypes, getMeasure, getNoSizeDetermination, getPredTargetColumn, getRawResultOutput, noSizeDeterminationTipText, setAdditionalMeasures, setAttributeID, setClassForIRStatistics, setClassifier, setClassifierName, setNoSizeDetermination, setPredTargetColumnpublic CostSensitiveClassifierSplitEvaluator()
public String globalInfo()
globalInfo in class ClassifierSplitEvaluatorpublic Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class ClassifierSplitEvaluatorpublic void setOptions(String[] options) throws Exception
-W <class name> The full class name of the classifier. eg: weka.classifiers.bayes.NaiveBayes
-C <index> The index of the class for which IR statistics are to be output. (default 1)
-I <index> The index of an attribute to output in the results. This attribute should identify an instance in order to know which instances are in the test set of a cross validation. if 0 no output (default 0).
-P Add target and prediction columns to the result for each fold.
Options specific to classifier weka.classifiers.rules.ZeroR:
-D If set, classifier is run in debug mode and may output additional info to the console
-D <directory> Name of a directory to search for cost files when loading costs on demand (default current directory).All options after -- will be passed to the classifier.
setOptions in interface OptionHandlersetOptions in class ClassifierSplitEvaluatoroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class ClassifierSplitEvaluatorpublic String onDemandDirectoryTipText()
public File getOnDemandDirectory()
public void setOnDemandDirectory(File newDir)
newDir - The cost file search directory.public Object[] getResultTypes()
getResultTypes in interface SplitEvaluatorgetResultTypes in class ClassifierSplitEvaluatorpublic String[] getResultNames()
getResultNames in interface SplitEvaluatorgetResultNames in class ClassifierSplitEvaluatorpublic Object[] getResult(Instances train, Instances test) throws Exception
getResult in interface SplitEvaluatorgetResult in class ClassifierSplitEvaluatortrain - the training Instances.test - the testing Instances.Exception - if a problem occurs while getting the resultspublic String toString()
toString in class ClassifierSplitEvaluatorpublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class ClassifierSplitEvaluatorCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.