public class TreeModel extends PMMLClassifier implements Drawable
BayesNet, Newick, NOT_DRAWABLE, TREE
Constructor and Description |
---|
TreeModel(Element model,
Instances dataDictionary,
MiningSchema miningSchema) |
Modifier and Type | Method and Description |
---|---|
double[] |
distributionForInstance(Instance inst)
Classifies the given test instance.
|
String |
getRevision()
Returns the revision string.
|
String |
graph()
Returns a string that describes a graph representing
the object.
|
int |
graphType()
Returns the type of graph representing
the object.
|
String |
toString() |
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersion
classifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setOptions
public TreeModel(Element model, Instances dataDictionary, MiningSchema miningSchema) throws Exception
Exception
public double[] distributionForInstance(Instance inst) throws Exception
distributionForInstance
in interface Classifier
distributionForInstance
in class AbstractClassifier
inst
- the instance to be classifiedException
- if an error occurred during the predictionpublic String graph() throws Exception
Drawable
public String getRevision()
AbstractClassifier
getRevision
in interface RevisionHandler
getRevision
in class AbstractClassifier
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.