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

Class weka.experiment.RegressionSplitEvaluator

java.lang.Object
   |
   +----weka.experiment.RegressionSplitEvaluator

public class RegressionSplitEvaluator
extends Object
implements SplitEvaluator, OptionHandler
A SplitEvaluator that produces results for a classification scheme on a numeric class attribute.

Version:
$Revision: 1.1 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)

Constructor Index

 o RegressionSplitEvaluator()

Method Index

 o getClassifier()
Get the value of Classifier.
 o getKey()
Gets the key describing the current SplitEvaluator.
 o getKeyNames()
Gets the names of each of the key columns produced for a single run.
 o getKeyTypes()
Gets the data types of each of the key columns produced for a single run.
 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 listOptions()
Returns an enumeration describing the available options.
 o setClassifier(Classifier)
Sets the classifier.
 o setClassifierName(String)
Set the Classifier to use, given it's class name.
 o setOptions(String[])
Parses a given list of options.
 o toString()
Returns a text description of the split evaluator.

Constructors

 o RegressionSplitEvaluator
 public RegressionSplitEvaluator()

Methods

 o listOptions
 public Enumeration listOptions()
Returns an enumeration describing the available options.

Returns:
an enumeration of all the available options
 o setOptions
 public void setOptions(String options[]) throws Exception
Parses a given list of options. Valid options are:

-W classname
Specify the full class name of the classifier to evaluate.

All option after -- will be passed to the classifier.

Parameters:
options - the list of options as an array of strings
Throws: Exception
if an option is not supported
 o getOptions
 public String[] getOptions()
Gets the current settings of the Classifier.

Returns:
an array of strings suitable for passing to setOptions
 o getKeyTypes
 public Object[] getKeyTypes()
Gets the data types of each of the key columns produced for a single run. The number of key fields must be constant for a given SplitEvaluator.

Returns:
an array containing objects of the type of each key column. The objects should be Strings, or Doubles.
 o getKeyNames
 public String[] getKeyNames()
Gets the names of each of the key columns produced for a single run. The number of key fields must be constant for a given SplitEvaluator.

Returns:
an array containing the name of each key column
 o getKey
 public Object[] getKey()
Gets the key describing the current SplitEvaluator. For example This may contain the name of the classifier used for classifier predictive evaluation. The number of key fields must be constant for a given SplitEvaluator.

Returns:
an array of objects containing the key.
 o getResultTypes
 public 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.
 o getResultNames
 public 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
 o getResult
 public Object[] getResult(Instances train,
                           Instances test) throws 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: Exception
if a problem occurs while getting the results
 o getClassifier
 public Classifier getClassifier()
Get the value of Classifier.

Returns:
Value of Classifier.
 o setClassifier
 public void setClassifier(Classifier newClassifier)
Sets the classifier.

Parameters:
newClassifier - the new classifier to use.
 o setClassifierName
 public void setClassifierName(String newClassifierName) throws Exception
Set the Classifier to use, given it's class name. A new classifier will be instantiated.

Parameters:
newClassifier - the Classifier class name.
Throws: Exception
if the class name is invalid.
 o toString
 public String toString()
Returns a text description of the split evaluator.

Returns:
a text description of the split evaluator.
Overrides:
toString in class Object

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