org.jpmml.manager
Class TreeModelManager

java.lang.Object
  extended by org.jpmml.manager.PMMLManager
      extended by org.jpmml.manager.ModelManager<TreeModel>
          extended by org.jpmml.manager.TreeModelManager
All Implemented Interfaces:
Consumer

public class TreeModelManager
extends ModelManager<TreeModel>


Constructor Summary
TreeModelManager()
           
TreeModelManager(PMML pmml)
           
TreeModelManager(PMML pmml, TreeModel treeModel)
           
 
Method Summary
 Node addNode(Node parentNode, Predicate predicate)
          Adds a new Node to the specified Node.
 Node addNode(Predicate predicate)
          Adds a new Node to the root Node.
 TreeModel createClassificationModel()
           
 TreeModel createModel(MiningFunctionType miningFunction)
           
 TreeModel getModel()
           
 ScoreDistribution getOrAddScoreDistribution(Node node, String value)
           
 Node getOrCreateRoot()
           
 String getSummary()
          Returns a short description of the underlying Model
 
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
 
Methods inherited from interface org.jpmml.manager.Consumer
getDataField
 

Constructor Detail

TreeModelManager

public TreeModelManager()

TreeModelManager

public TreeModelManager(PMML pmml)

TreeModelManager

public TreeModelManager(PMML pmml,
                        TreeModel treeModel)
Method Detail

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.