程序包 weka.classifiers

接口 Sourcable

所有已知实现类:
AdaBoostM1, DecisionStump, Id3, J48, J48graft, LogitBoost, MultiBoostAB, OneR, REPTree, ZeroR

public interface Sourcable
Interface for classifiers that can be converted to Java source.
版本:
$Revision: 1.6 $
作者:
Len Trigg (trigg@cs.waikato.ac.nz)
  • 方法概要

    修饰符和类型
    方法
    说明
    toSource(String className)
    Returns a string that describes the classifier as source.
  • 方法详细资料

    • toSource

      String toSource(String className) throws Exception
      Returns a string that describes the classifier as source. The classifier will be contained in a class with the given name (there may be auxiliary classes), and will contain a method with the signature:
      
       public static double classify(Object [] i);
       
      where the array i contains elements that are either Double, String, with missing values represented as null. The generated code is public domain and comes with no warranty.
      参数:
      className - the name that should be given to the source class.
      返回:
      the object source described by a string
      抛出:
      Exception - if the source can't be computed