|
||||||||||
| 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(Object obj)
Tests whether the current evaluation object is equal to another evaluation object |
String |
evaluate(Kernel kernel,
Instances data)
Evaluates the Kernel with the given commandline options and returns the evaluation string. |
static String |
evaluate(Kernel Kernel,
String[] options)
Evaluates the Kernel with the given commandline options and returns the evaluation string. |
static String |
evaluate(String kernelString,
String[] options)
Evaluates a kernel with the options given in an array of strings. |
String |
getRevision()
Returns the revision string. |
String[] |
getUserOptions()
returns the options the user supplied for the kernel |
static void |
main(String[] args)
A test method for this class. |
void |
setUserOptions(String[] options)
sets the option the user supplied for the kernel |
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 |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KernelEvaluation()
| Method Detail |
|---|
public void setUserOptions(String[] options)
options - options that were supplied for the kernelpublic String[] getUserOptions()
public static String evaluate(Kernel Kernel,
String[] options)
throws Exception
Kernel - the Kernel to evaluateoptions - the commandline options
Exception - if evaluation fails
public static String evaluate(String kernelString,
String[] options)
throws Exception
kernelString - class of kernel as a stringoptions - the array of string containing the options
Exception - if model could not be evaluated successfully
public String evaluate(Kernel kernel,
Instances data)
throws Exception
kernel - the Kernel to evaluatedata - the data to run the Kernel with
Exception - if evaluation failspublic boolean equals(Object obj)
equals in class Objectobj - the object to compare against
public String toSummaryString()
public String toSummaryString(String title)
title - the title to print before the result
public String toString()
toString in class ObjecttoSummaryString()public String getRevision()
getRevision in interface RevisionHandlerpublic static void main(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 | |||||||||