public class TreeModel extends PMMLClassifier implements Drawable
| Modifier and Type | Field and Description |
|---|---|
protected weka.classifiers.pmml.consumer.TreeModel.MiningFunction |
m_functionType
The mining function
|
protected double |
m_missingValuePenalty
The missing value penalty (if defined).
|
protected weka.classifiers.pmml.consumer.TreeModel.MissingValueStrategy |
m_missingValueStrategy
The missing value strategy
|
protected weka.classifiers.pmml.consumer.TreeModel.NoTrueChildStrategy |
m_noTrueChildStrategy
The no true child strategy to use
|
protected weka.classifiers.pmml.consumer.TreeModel.TreeNode |
m_root
The root of the tree
|
protected weka.classifiers.pmml.consumer.TreeModel.SplitCharacteristic |
m_splitCharacteristic
The splitting type
|
m_creatorApplication, m_dataDictionary, m_fieldsMap, m_initialized, m_log, m_miningSchema, m_pmmlVersionBATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULTBayesNet, Newick, NOT_DRAWABLE, TREE| Constructor and Description |
|---|
TreeModel(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
distributionForInstance(Instance inst)
Classifies the given test instance.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
graph()
Returns a string that describes a graph representing
the object.
|
int |
graphType()
Returns the type of graph representing
the object.
|
java.lang.String |
toString() |
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersionbatchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptionsprotected weka.classifiers.pmml.consumer.TreeModel.MiningFunction m_functionType
protected weka.classifiers.pmml.consumer.TreeModel.MissingValueStrategy m_missingValueStrategy
protected double m_missingValuePenalty
protected weka.classifiers.pmml.consumer.TreeModel.NoTrueChildStrategy m_noTrueChildStrategy
protected weka.classifiers.pmml.consumer.TreeModel.SplitCharacteristic m_splitCharacteristic
protected weka.classifiers.pmml.consumer.TreeModel.TreeNode m_root
public TreeModel(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
throws java.lang.Exception
java.lang.Exceptionpublic double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classifiedjava.lang.Exception - if an error occurred during the predictionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String graph()
throws java.lang.Exception
Drawablepublic java.lang.String getRevision()
AbstractClassifiergetRevision in interface RevisionHandlergetRevision in class AbstractClassifier