public abstract class PMMLClassifier extends Classifier implements Serializable, PMMLModel
Modifier and Type | Field and Description |
---|---|
protected String |
m_creatorApplication
Creator application
|
protected Instances |
m_dataDictionary
The data dictionary
|
protected MappingInfo |
m_fieldsMap
The mapping between mining schema fields and incoming instance
attributes
|
protected boolean |
m_initialized
Has the classifier been initialized (i.e.
|
protected Logger |
m_log
Logger
|
protected MiningSchema |
m_miningSchema
The fields and meta data used by the model
|
protected String |
m_pmmlVersion
PMML version
|
m_Debug
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(Instances data)
Throw an exception - PMML models are pre-built.
|
void |
done()
Signal that a scoring run has been completed.
|
String |
getCreatorApplication()
Get the name of the application that created this model
|
Instances |
getDataDictionary()
Get the data dictionary.
|
String |
getFieldsMappingString()
Get a textual description of the mapping between mining schema
fields and incoming data fields.
|
Logger |
getLog()
Get the logger.
|
MiningSchema |
getMiningSchema()
Get the mining schema for this model.
|
String |
getPMMLVersion()
Get the PMML version used for this model.
|
void |
mapToMiningSchema(Instances dataSet)
Map mining schema to incoming instances.
|
void |
setCreatorApplication(Document doc)
Set the name of the application (if specified) that created this
model
|
void |
setLog(Logger log)
Set a logger to use.
|
void |
setPMMLVersion(Document doc)
Set the version of PMML used for this model.
|
classifyInstance, debugTipText, distributionForInstance, forName, getCapabilities, getDebug, getOptions, getRevision, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setOptions
protected String m_pmmlVersion
protected String m_creatorApplication
protected Logger m_log
protected Instances m_dataDictionary
protected MiningSchema m_miningSchema
protected transient MappingInfo m_fieldsMap
protected transient boolean m_initialized
public void setPMMLVersion(Document doc)
setPMMLVersion
in interface PMMLModel
doc
- the Document encapsulating the pmmlpublic void setCreatorApplication(Document doc)
setCreatorApplication
in interface PMMLModel
doc
- the Document encapsulating the pmmlpublic Instances getDataDictionary()
public MiningSchema getMiningSchema()
getMiningSchema
in interface PMMLModel
public String getPMMLVersion()
getPMMLVersion
in interface PMMLModel
public String getCreatorApplication()
getCreatorApplication
in interface PMMLModel
public void setLog(Logger log)
public Logger getLog()
public void buildClassifier(Instances data) throws Exception
buildClassifier
in class Classifier
data
- the Instances to learn fromException
- if something goes wrongpublic void done()
public void mapToMiningSchema(Instances dataSet) throws Exception
dataSet
- the structure of the incoming InstancesException
- if something goes wrongpublic String getFieldsMappingString()
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.