public abstract class PMMLClassifier extends AbstractClassifier implements java.io.Serializable, PMMLModel
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.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. have we established
a mapping between the mining schema and the incoming instances)?
|
protected Logger |
m_log
Logger
|
protected MiningSchema |
m_miningSchema
The fields and meta data used by the model
|
protected java.lang.String |
m_pmmlVersion
PMML version
|
BATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT| 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.
|
java.lang.String |
getCreatorApplication()
Get the name of the application that created this model
|
Instances |
getDataDictionary()
Get the data dictionary.
|
java.lang.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.
|
java.lang.String |
getPMMLVersion()
Get the PMML version used for this model.
|
void |
mapToMiningSchema(Instances dataSet)
Map mining schema to incoming instances.
|
void |
setCreatorApplication(org.w3c.dom.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(org.w3c.dom.Document doc)
Set the version of PMML used for this model.
|
batchSizeTipText, classifyInstance, debugTipText, distributionForInstance, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, getRevision, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptionsprotected java.lang.String m_pmmlVersion
protected java.lang.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(org.w3c.dom.Document doc)
setPMMLVersion in interface PMMLModeldoc - the Document encapsulating the pmmlpublic void setCreatorApplication(org.w3c.dom.Document doc)
setCreatorApplication in interface PMMLModeldoc - the Document encapsulating the pmmlpublic Instances getDataDictionary()
public MiningSchema getMiningSchema()
getMiningSchema in interface PMMLModelpublic java.lang.String getPMMLVersion()
getPMMLVersion in interface PMMLModelpublic java.lang.String getCreatorApplication()
getCreatorApplication in interface PMMLModelpublic void setLog(Logger log)
public Logger getLog()
public void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier in interface Classifierdata - the Instances to learn fromjava.lang.Exception - if something goes wrongpublic void done()
public void mapToMiningSchema(Instances dataSet) throws java.lang.Exception
dataSet - the structure of the incoming Instancesjava.lang.Exception - if something goes wrongpublic java.lang.String getFieldsMappingString()