类 PMMLClassifier
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.pmml.consumer.PMMLClassifier
- 所有已实现的接口:
Serializable
,Cloneable
,CapabilitiesHandler
,OptionHandler
,PMMLModel
,RevisionHandler
- 直接已知子类:
GeneralRegression
,NeuralNetwork
,Regression
Abstract base class for all PMML classifiers.
- 版本:
- $Revision: 5562 $
- 作者:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- 另请参阅:
-
方法概要
修饰符和类型方法说明void
buildClassifier
(Instances data) Throw an exception - PMML models are pre-built.void
done()
Signal that a scoring run has been completed.Get the name of the application that created this modelGet the data dictionary.Get a textual description of the mapping between mining schema fields and incoming data fields.getLog()
Get the logger.Get the mining schema for this model.Get the PMML version used for this model.void
mapToMiningSchema
(Instances dataSet) Map mining schema to incoming instances.void
Set the name of the application (if specified) that created this modelvoid
Set a logger to use.void
setPMMLVersion
(Document doc) Set the version of PMML used for this model.从类继承的方法 weka.classifiers.Classifier
classifyInstance, debugTipText, distributionForInstance, forName, getCapabilities, getDebug, getOptions, getRevision, listOptions, makeCopies, makeCopy, setDebug, setOptions
-
方法详细资料
-
setPMMLVersion
Set the version of PMML used for this model.- 指定者:
setPMMLVersion
在接口中PMMLModel
- 参数:
doc
- the Document encapsulating the pmml
-
setCreatorApplication
Set the name of the application (if specified) that created this model- 指定者:
setCreatorApplication
在接口中PMMLModel
- 参数:
doc
- the Document encapsulating the pmml
-
getDataDictionary
Get the data dictionary.- 返回:
- the data dictionary
-
getMiningSchema
Get the mining schema for this model.- 指定者:
getMiningSchema
在接口中PMMLModel
- 返回:
- the mining schema
-
getPMMLVersion
Get the PMML version used for this model.- 指定者:
getPMMLVersion
在接口中PMMLModel
- 返回:
- the PMML version
-
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
Set a logger to use. -
getLog
Get the logger. -
buildClassifier
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
Map mining schema to incoming instances.- 参数:
dataSet
- the structure of the incoming Instances- 抛出:
Exception
- if something goes wrong
-
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.
-