public class KernelEvaluation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double[][] |
m_Evaluations
the kernel evaluation results
|
protected int |
m_NumCacheHits
the number of cache hits
|
protected int |
m_NumEvals
the number of performed evaluations
|
protected java.lang.String[] |
m_Options
user-supplied options
|
protected java.lang.StringBuffer |
m_Result
the result string
|
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.
|
java.lang.String[] |
getUserOptions()
returns the options the user supplied for the kernel
|
protected static java.lang.String |
makeOptionString(Kernel Kernel)
Generates an option string to output on the commandline.
|
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
|
protected java.lang.StringBuffer m_Result
protected double[][] m_Evaluations
protected int m_NumEvals
protected int m_NumCacheHits
protected java.lang.String[] m_Options
public void setUserOptions(java.lang.String[] options)
options
- options that were supplied for the kernelpublic java.lang.String[] getUserOptions()
protected static java.lang.String makeOptionString(Kernel Kernel)
Kernel
- the Kernel to generate the string forpublic 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()