|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.functions.supportVector.KernelEvaluation
public class KernelEvaluation
Class for evaluating Kernels.
| Constructor Summary | |
|---|---|
KernelEvaluation()
default constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KernelEvaluation()
| Method Detail |
|---|
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 options
java.lang.Exception - if evaluation fails
public 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 options
java.lang.Exception - if model could not be evaluated successfully
public java.lang.String evaluate(Kernel kernel,
Instances data)
throws java.lang.Exception
kernel - the Kernel to evaluatedata - the data to run the Kernel with
java.lang.Exception - if evaluation failspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare against
public java.lang.String toSummaryString()
public java.lang.String toSummaryString(java.lang.String title)
title - the title to print before the result
public java.lang.String toString()
toString in class java.lang.ObjecttoSummaryString()public java.lang.String getRevision()
getRevision in interface RevisionHandlerpublic 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||