Class KernelEvaluation
java.lang.Object
weka.classifiers.functions.supportVector.KernelEvaluation
- All Implemented Interfaces:
- RevisionHandler
Class for evaluating Kernels.
- Version:
- $Revision: 14516 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanTests whether the current evaluation object is equal to another evaluation objectstatic StringEvaluates a kernel with the options given in an array of strings.static StringEvaluates the Kernel with the given commandline options and returns the evaluation string.Evaluates the Kernel with the given commandline options and returns the evaluation string.Returns the revision string.String[]returns the options the user supplied for the kernelstatic voidA test method for this class.voidsetUserOptions(String[] options) sets the option the user supplied for the kerneltoString()returns the current resultreturns a summary string of the evaluation with a no titletoSummaryString(String title) returns a summary string of the evaluation with a default title
- 
Constructor Details- 
KernelEvaluationpublic KernelEvaluation()default constructor
 
- 
- 
Method Details- 
setUserOptionssets the option the user supplied for the kernel- Parameters:
- options- options that were supplied for the kernel
 
- 
getUserOptionsreturns the options the user supplied for the kernel- Returns:
- the user supplied options for the kernel
 
- 
evaluateEvaluates the Kernel with the given commandline options and returns the evaluation string.- Parameters:
- Kernel- the Kernel to evaluate
- options- the commandline options
- Returns:
- the generated output string
- Throws:
- Exception- if evaluation fails
 
- 
evaluateEvaluates a kernel with the options given in an array of strings.- Parameters:
- kernelString- class of kernel as a string
- options- the array of string containing the options
- Returns:
- a string describing the results
- Throws:
- Exception- if model could not be evaluated successfully
 
- 
evaluateEvaluates the Kernel with the given commandline options and returns the evaluation string.- Parameters:
- kernel- the Kernel to evaluate
- data- the data to run the Kernel with
- Returns:
- the generated output string
- Throws:
- Exception- if evaluation fails
 
- 
equalsTests whether the current evaluation object is equal to another evaluation object
- 
toSummaryStringreturns a summary string of the evaluation with a no title- Returns:
- the summary string
 
- 
toSummaryStringreturns a summary string of the evaluation with a default title- Parameters:
- title- the title to print before the result
- Returns:
- the summary string
 
- 
toStringreturns the current result
- 
getRevisionReturns the revision string.- Specified by:
- getRevisionin interface- RevisionHandler
- Returns:
- the revision
 
- 
mainA test method for this class. Just extracts the first command line argument as a kernel class name and calls evaluate.- Parameters:
- args- an array of command line arguments, the first of which must be the class name of a kernel.
 
 
-