类 AssociatorEvaluation

java.lang.Object
weka.associations.AssociatorEvaluation
所有已实现的接口:
RevisionHandler

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

    • AssociatorEvaluation

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

    • evaluate

      public static String evaluate(String associatorString, String[] options) throws Exception
      Evaluates an associator with the options given in an array of strings.
      参数:
      associatorString - class of associator 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 static String evaluate(Associator associator, String[] options) throws Exception
      Evaluates the associator with the given commandline options and returns the evaluation string.
      参数:
      associator - the Associator to evaluate
      options - the commandline options
      返回:
      the generated output string
      抛出:
      Exception - if evaluation fails
    • evaluate

      public String evaluate(Associator associator, Instances data) throws Exception
      Evaluates the associator with the given commandline options and returns the evaluation string.
      参数:
      associator - the Associator to evaluate
      data - the data to run the associator 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 an associator class name and calls evaluate.
      参数:
      args - an array of command line arguments, the first of which must be the class name of an associator.