All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.experiment.CostSensitiveClassifierSplitEvaluator

java.lang.Object
    |
    +----weka.experiment.ClassifierSplitEvaluator
            |
            +----weka.experiment.CostSensitiveClassifierSplitEvaluator

public class CostSensitiveClassifierSplitEvaluator
extends ClassifierSplitEvaluator
A SplitEvaluator that produces results for a classification scheme on a nominal class attribute, including weighted misclassification costs.

Version:
$Revision: 1.7 $
Author:
Len Trigg (len@intelligenesis.net)

Constructor Index

 o CostSensitiveClassifierSplitEvaluator()
 

Method Index

 o getOnDemandDirectory()
Returns the directory that will be searched for cost files when loading on demand.
 o getOptions()
Gets the current settings of the Classifier.
 o getResult(Instances, Instances)
Gets the results for the supplied train and test datasets.
 o getResultNames()
Gets the names of each of the result columns produced for a single run.
 o getResultTypes()
Gets the data types of each of the result columns produced for a single run.
 o globalInfo()
Returns a string describing this split evaluator
 o listOptions()
Returns an enumeration describing the available options.
 o onDemandDirectoryTipText()
Returns the tip text for this property
 o setOnDemandDirectory(File)
Sets the directory that will be searched for cost files when loading on demand.
 o setOptions(String[])
Parses a given list of options.
 o toString()
Returns a text description of the split evaluator.

Constructor Detail

 o CostSensitiveClassifierSplitEvaluator
public CostSensitiveClassifierSplitEvaluator()

Method Detail

 o globalInfo
public java.lang.String globalInfo()
          Returns a string describing this split evaluator
Returns:
a description of the split evaluator suitable for displaying in the explorer/experimenter gui
Overrides:
globalInfo in class ClassifierSplitEvaluator
 o listOptions
public java.util.Enumeration listOptions()
          Returns an enumeration describing the available options.
Returns:
an enumeration of all the available options
Overrides:
listOptions in class ClassifierSplitEvaluator
 o setOptions
public void setOptions(java.lang.String options[]) throws java.lang.Exception
          Parses a given list of options. Valid options (in addition to those of ClassifierSplitEvaluator) are:

-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.

Parameters:
options - the list of options as an array of strings
Throws:
java.lang.Exception - if an option is not supported
Overrides:
setOptions in class ClassifierSplitEvaluator
 o getOptions
public java.lang.String[] getOptions()
          Gets the current settings of the Classifier.
Returns:
an array of strings suitable for passing to setOptions
Overrides:
getOptions in class ClassifierSplitEvaluator
 o onDemandDirectoryTipText
public java.lang.String onDemandDirectoryTipText()
          Returns the tip text for this property
Returns:
tip text for this property suitable for displaying in the explorer/experimenter gui
 o getOnDemandDirectory
public java.io.File getOnDemandDirectory()
          Returns the directory that will be searched for cost files when loading on demand.
Returns:
The cost file search directory.
 o setOnDemandDirectory
public void setOnDemandDirectory(java.io.File newDir)
          Sets the directory that will be searched for cost files when loading on demand.
Parameters:
newDir - The cost file search directory.
 o getResultTypes
public java.lang.Object[] getResultTypes()
          Gets the data types of each of the result columns produced for a single run. The number of result fields must be constant for a given SplitEvaluator.
Returns:
an array containing objects of the type of each result column. The objects should be Strings, or Doubles.
Overrides:
getResultTypes in class ClassifierSplitEvaluator
 o getResultNames
public java.lang.String[] getResultNames()
          Gets the names of each of the result columns produced for a single run. The number of result fields must be constant for a given SplitEvaluator.
Returns:
an array containing the name of each result column
Overrides:
getResultNames in class ClassifierSplitEvaluator
 o getResult
public java.lang.Object[] getResult(Instances train,
                          Instances test) throws java.lang.Exception
          Gets the results for the supplied train and test datasets.
Parameters:
train - the training Instances.
test - the testing Instances.
Returns:
the results stored in an array. The objects stored in the array may be Strings, Doubles, or null (for the missing value).
Throws:
java.lang.Exception - if a problem occurs while getting the results
Overrides:
getResult in class ClassifierSplitEvaluator
 o toString
public java.lang.String toString()
          Returns a text description of the split evaluator.
Returns:
a text description of the split evaluator.
Overrides:
toString in class ClassifierSplitEvaluator

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home