org.jpmml.manager
Class TreeModelManager
java.lang.Object
org.jpmml.manager.PMMLManager
org.jpmml.manager.ModelManager<TreeModel>
org.jpmml.manager.TreeModelManager
- All Implemented Interfaces:
- Consumer
public class TreeModelManager
- extends ModelManager<TreeModel>
| Methods inherited from class org.jpmml.manager.ModelManager |
addField, addMiningField, ensureNotNull, ensureNull, getActiveFields, getMiningField, getMiningFields, getMiningSchema, getOrCreateLocalTransformations, getOrCreateOutput, getOutputField, getOutputFields, getPredictedFields, getTarget, resolve |
| Methods inherited from class org.jpmml.manager.PMMLManager |
addDataField, find, find, findAll, getDataDictionary, getDataField, getHeader, getModel, getModelManager, getModelManager, getModels, getOrCreateTransformationDictionary, getPmml |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeModelManager
public TreeModelManager()
TreeModelManager
public TreeModelManager(PMML pmml)
TreeModelManager
public TreeModelManager(PMML pmml,
TreeModel treeModel)
getSummary
public String getSummary()
- Description copied from interface:
Consumer
- Returns a short description of the underlying
Model
getModel
public TreeModel getModel()
- Specified by:
getModel in class ModelManager<TreeModel>
createClassificationModel
public TreeModel createClassificationModel()
createModel
public TreeModel createModel(MiningFunctionType miningFunction)
- Throws:
ModelManagerException - If the Model already exists- See Also:
getModel()
getOrCreateRoot
public Node getOrCreateRoot()
- Returns:
- The root Node
addNode
public Node addNode(Predicate predicate)
- Adds a new Node to the root Node.
- Returns:
- The newly added Node
- See Also:
getOrCreateRoot()
addNode
public Node addNode(Node parentNode,
Predicate predicate)
- Adds a new Node to the specified Node.
- Returns:
- The newly added Node
getOrAddScoreDistribution
public ScoreDistribution getOrAddScoreDistribution(Node node,
String value)
Copyright © 2013 University of Tartu. All Rights Reserved.