Package weka.associations
Class AssociatorEvaluation
java.lang.Object
weka.associations.AssociatorEvaluation
- All Implemented Interfaces:
RevisionHandler
Class for evaluating Associaters.
- Version:
- $Revision: 10172 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests whether the current evaluation object is equal to another evaluation objectstatic String
Evaluates an associator with the options given in an array of strings.static String
evaluate
(Associator associator, String[] options) Evaluates the associator with the given commandline options and returns the evaluation string.evaluate
(Associator associator, Instances data) Evaluates the associator with the given commandline options and returns the evaluation string.Returns the revision string.static void
A test method for this class.toString()
returns the current resultreturns a summary string of the evaluation with a no titletoSummaryString
(String title) returns a summary string of the evaluation with a default title
-
Constructor Details
-
AssociatorEvaluation
public AssociatorEvaluation()default constructor
-
-
Method Details
-
evaluate
Evaluates an associator with the options given in an array of strings.- Parameters:
associatorString
- class of associator as a stringoptions
- the array of string containing the options- Returns:
- a string describing the results
- Throws:
Exception
- if model could not be evaluated successfully
-
evaluate
Evaluates the associator with the given commandline options and returns the evaluation string.- Parameters:
associator
- the Associator to evaluateoptions
- the commandline options- Returns:
- the generated output string
- Throws:
Exception
- if evaluation fails
-
evaluate
Evaluates the associator with the given commandline options and returns the evaluation string.- Parameters:
associator
- the Associator to evaluatedata
- the data to run the associator with- Returns:
- the generated output string
- Throws:
Exception
- if evaluation fails
-
equals
Tests whether the current evaluation object is equal to another evaluation object -
toSummaryString
returns a summary string of the evaluation with a no title- Returns:
- the summary string
-
toSummaryString
returns a summary string of the evaluation with a default title- Parameters:
title
- the title to print before the result- Returns:
- the summary string
-
toString
returns the current result -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-
main
A test method for this class. Just extracts the first command line argument as an associator class name and calls evaluate.- Parameters:
args
- an array of command line arguments, the first of which must be the class name of an associator.
-