类 KernelEvaluation

java.lang.Object
weka.classifiers.functions.supportVector.KernelEvaluation
所有已实现的接口:
RevisionHandler

public class KernelEvaluation extends Object implements RevisionHandler
Class for evaluating Kernels.
版本:
$Revision: 1.3 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
  • 构造器详细资料

    • KernelEvaluation

      public KernelEvaluation()
      default constructor
  • 方法详细资料

    • setUserOptions

      public void setUserOptions(String[] options)
      sets the option the user supplied for the kernel
      参数:
      options - options that were supplied for the kernel
    • getUserOptions

      public String[] getUserOptions()
      returns the options the user supplied for the kernel
      返回:
      the user supplied options for the kernel
    • evaluate

      public static String evaluate(Kernel Kernel, String[] options) throws Exception
      Evaluates the Kernel with the given commandline options and returns the evaluation string.
      参数:
      Kernel - the Kernel to evaluate
      options - the commandline options
      返回:
      the generated output string
      抛出:
      Exception - if evaluation fails
    • evaluate

      public static String evaluate(String kernelString, String[] options) throws Exception
      Evaluates a kernel with the options given in an array of strings.
      参数:
      kernelString - class of kernel as a string
      options - the array of string containing the options
      返回:
      a string describing the results
      抛出:
      Exception - if model could not be evaluated successfully
    • evaluate

      public String evaluate(Kernel kernel, Instances data) throws Exception
      Evaluates the Kernel with the given commandline options and returns the evaluation string.
      参数:
      kernel - the Kernel to evaluate
      data - the data to run the Kernel with
      返回:
      the generated output string
      抛出:
      Exception - if evaluation fails
    • equals

      public boolean equals(Object obj)
      Tests whether the current evaluation object is equal to another evaluation object
      覆盖:
      equals 在类中 Object
      参数:
      obj - the object to compare against
      返回:
      true if the two objects are equal
    • toSummaryString

      public String toSummaryString()
      returns a summary string of the evaluation with a no title
      返回:
      the summary string
    • toSummaryString

      public String toSummaryString(String title)
      returns a summary string of the evaluation with a default title
      参数:
      title - the title to print before the result
      返回:
      the summary string
    • toString

      public String toString()
      returns the current result
      覆盖:
      toString 在类中 Object
      返回:
      the currently stored result
      另请参阅:
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision
    • main

      public static void main(String[] args)
      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.