类 KernelEvaluation
java.lang.Object
weka.classifiers.functions.supportVector.KernelEvaluation
- 所有已实现的接口:
RevisionHandler
Class for evaluating Kernels.
- 版本:
- $Revision: 1.3 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
Tests whether the current evaluation object is equal to another evaluation objectstatic String
Evaluates a kernel with the options given in an array of strings.static String
Evaluates 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 void
A test method for this class.void
setUserOptions
(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
-
构造器详细资料
-
KernelEvaluation
public KernelEvaluation()default constructor
-
-
方法详细资料
-
setUserOptions
sets the option the user supplied for the kernel- 参数:
options
- options that were supplied for the kernel
-
getUserOptions
returns the options the user supplied for the kernel- 返回:
- the user supplied options for the kernel
-
evaluate
Evaluates the Kernel with the given commandline options and returns the evaluation string.- 参数:
Kernel
- the Kernel to evaluateoptions
- the commandline options- 返回:
- the generated output string
- 抛出:
Exception
- if evaluation fails
-
evaluate
Evaluates a kernel with the options given in an array of strings.- 参数:
kernelString
- class of kernel as a stringoptions
- the array of string containing the options- 返回:
- a string describing the results
- 抛出:
Exception
- if model could not be evaluated successfully
-
evaluate
Evaluates the Kernel with the given commandline options and returns the evaluation string.- 参数:
kernel
- the Kernel to evaluatedata
- the data to run the Kernel with- 返回:
- the generated output string
- 抛出:
Exception
- if evaluation fails
-
equals
Tests whether the current evaluation object is equal to another evaluation object -
toSummaryString
returns a summary string of the evaluation with a no title- 返回:
- the summary string
-
toSummaryString
returns a summary string of the evaluation with a default title- 参数:
title
- the title to print before the result- 返回:
- the summary string
-
toString
returns the current result -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
A test method for this class. Just extracts the first command line argument as a kernel class name and calls evaluate.- 参数:
args
- an array of command line arguments, the first of which must be the class name of a kernel.
-