类 PMMLClassifier

java.lang.Object
weka.classifiers.Classifier
weka.classifiers.pmml.consumer.PMMLClassifier
所有已实现的接口:
Serializable, Cloneable, CapabilitiesHandler, OptionHandler, PMMLModel, RevisionHandler
直接已知子类:
GeneralRegression, NeuralNetwork, Regression

public abstract class PMMLClassifier extends Classifier implements Serializable, PMMLModel
Abstract base class for all PMML classifiers.
版本:
$Revision: 5562 $
作者:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
另请参阅:
  • 方法详细资料

    • setPMMLVersion

      public void setPMMLVersion(Document doc)
      Set the version of PMML used for this model.
      指定者:
      setPMMLVersion 在接口中 PMMLModel
      参数:
      doc - the Document encapsulating the pmml
    • setCreatorApplication

      public void setCreatorApplication(Document doc)
      Set the name of the application (if specified) that created this model
      指定者:
      setCreatorApplication 在接口中 PMMLModel
      参数:
      doc - the Document encapsulating the pmml
    • getDataDictionary

      public Instances getDataDictionary()
      Get the data dictionary.
      返回:
      the data dictionary
    • getMiningSchema

      public MiningSchema getMiningSchema()
      Get the mining schema for this model.
      指定者:
      getMiningSchema 在接口中 PMMLModel
      返回:
      the mining schema
    • getPMMLVersion

      public String getPMMLVersion()
      Get the PMML version used for this model.
      指定者:
      getPMMLVersion 在接口中 PMMLModel
      返回:
      the PMML version
    • getCreatorApplication

      public String getCreatorApplication()
      Get the name of the application that created this model
      指定者:
      getCreatorApplication 在接口中 PMMLModel
      返回:
      the name of the creating application or null if not specified in the pmml.
    • setLog

      public void setLog(Logger log)
      Set a logger to use.
      指定者:
      setLog 在接口中 PMMLModel
      参数:
      log - the logger to use
    • getLog

      public Logger getLog()
      Get the logger.
      指定者:
      getLog 在接口中 PMMLModel
      返回:
      the logger (or null if none is being used)
    • buildClassifier

      public void buildClassifier(Instances data) throws Exception
      Throw an exception - PMML models are pre-built.
      指定者:
      buildClassifier 在类中 Classifier
      参数:
      data - the Instances to learn from
      抛出:
      Exception - if something goes wrong
    • done

      public void done()
      Signal that a scoring run has been completed. Resets the initialized state to false so that a subsequent scoring run will trigger the mapping of the mining schema to incoming instances. If not called after a scoring run, then the classifier will assume that the current mapping is still valid.
    • mapToMiningSchema

      public void mapToMiningSchema(Instances dataSet) throws Exception
      Map mining schema to incoming instances.
      参数:
      dataSet - the structure of the incoming Instances
      抛出:
      Exception - if something goes wrong
    • getFieldsMappingString

      public String getFieldsMappingString()
      Get a textual description of the mapping between mining schema fields and incoming data fields.
      返回:
      a description of the fields mapping as a String or null if no mapping has been constructed yet.