public class KernelEvaluation extends java.lang.Object implements RevisionHandler
Constructor and Description |
---|
KernelEvaluation()
default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests whether the current evaluation object is equal to another evaluation
object
|
java.lang.String |
evaluate(Kernel kernel,
Instances data)
Evaluates the Kernel with the given commandline options and returns the
evaluation string.
|
static java.lang.String |
evaluate(Kernel Kernel,
java.lang.String[] options)
Evaluates the Kernel with the given commandline options and returns the
evaluation string.
|
static java.lang.String |
evaluate(java.lang.String kernelString,
java.lang.String[] options)
Evaluates a kernel with the options given in an array of strings.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String[] |
getUserOptions()
returns the options the user supplied for the kernel
|
static void |
main(java.lang.String[] args)
A test method for this class.
|
void |
setUserOptions(java.lang.String[] options)
sets the option the user supplied for the kernel
|
java.lang.String |
toString()
returns the current result
|
java.lang.String |
toSummaryString()
returns a summary string of the evaluation with a no title
|
java.lang.String |
toSummaryString(java.lang.String title)
returns a summary string of the evaluation with a default title
|
public void setUserOptions(java.lang.String[] options)
options
- options that were supplied for the kernelpublic java.lang.String[] getUserOptions()
public static java.lang.String evaluate(Kernel Kernel, java.lang.String[] options) throws java.lang.Exception
Kernel
- the Kernel to evaluateoptions
- the commandline optionsjava.lang.Exception
- if evaluation failspublic static java.lang.String evaluate(java.lang.String kernelString, java.lang.String[] options) throws java.lang.Exception
kernelString
- class of kernel as a stringoptions
- the array of string containing the optionsjava.lang.Exception
- if model could not be evaluated successfullypublic java.lang.String evaluate(Kernel kernel, Instances data) throws java.lang.Exception
kernel
- the Kernel to evaluatedata
- the data to run the Kernel withjava.lang.Exception
- if evaluation failspublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare againstpublic java.lang.String toSummaryString()
public java.lang.String toSummaryString(java.lang.String title)
title
- the title to print before the resultpublic java.lang.String toString()
toString
in class java.lang.Object
toSummaryString()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
public static void main(java.lang.String[] args)
args
- an array of command line arguments, the first of which must be
the class name of a kernel.