public class AssociatorEvaluation extends Object implements RevisionHandler
Constructor and Description |
---|
AssociatorEvaluation()
default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests whether the current evaluation object is equal to another
evaluation object
|
String |
evaluate(Associator associator,
Instances data)
Evaluates the associator with the given commandline options and returns
the evaluation string.
|
static String |
evaluate(Associator associator,
String[] options)
Evaluates the associator with the given commandline options and returns
the evaluation string.
|
static String |
evaluate(String associatorString,
String[] options)
Evaluates an associator with the options given in an array of strings.
|
String |
getRevision()
Returns the revision string.
|
static void |
main(String[] args)
A test method for this class.
|
String |
toString()
returns the current result
|
String |
toSummaryString()
returns a summary string of the evaluation with a no title
|
String |
toSummaryString(String title)
returns a summary string of the evaluation with a default title
|
public static String evaluate(String associatorString, String[] options) throws Exception
associatorString
- class of associator as a stringoptions
- the array of string containing the optionsException
- if model could not be evaluated successfullypublic static String evaluate(Associator associator, String[] options) throws Exception
associator
- the Associator to evaluateoptions
- the commandline optionsException
- if evaluation failspublic String evaluate(Associator associator, Instances data) throws Exception
associator
- the Associator to evaluatedata
- the data to run the associator withException
- if evaluation failspublic boolean equals(Object obj)
public String toSummaryString()
public String toSummaryString(String title)
title
- the title to print before the resultpublic String toString()
toString
in class Object
toSummaryString()
public String getRevision()
getRevision
in interface RevisionHandler
public static void main(String[] args)
args
- an array of command line arguments, the first of which
must be the class name of an associator.Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.