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, setPMMLVersionclassifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setOptionspublic TreeModel(Element model, Instances dataDictionary, MiningSchema miningSchema) throws Exception
Exceptionpublic double[] distributionForInstance(Instance inst) throws Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classifiedException - if an error occurred during the predictionpublic String graph() throws Exception
Drawablepublic String getRevision()
AbstractClassifiergetRevision in interface RevisionHandlergetRevision in class AbstractClassifierCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.