public class TreeModel extends PMMLClassifier implements Drawable
BATCH_SIZE_DEFAULT, NUM_DECIMAL_PLACES_DEFAULT
BayesNet, 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, setPMMLVersion
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptions
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public TreeModel(org.w3c.dom.Element model, Instances dataDictionary, MiningSchema miningSchema) throws java.lang.Exception
java.lang.Exception
public double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance
in interface Classifier
distributionForInstance
in class AbstractClassifier
inst
- the instance to be classifiedjava.lang.Exception
- if an error occurred during the predictionpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String graph() throws java.lang.Exception
Drawable
public java.lang.String getRevision()
AbstractClassifier
getRevision
in interface RevisionHandler
getRevision
in class AbstractClassifier