java.lang.Object
com.pervasive.datarush.analytics.decisiontree.TreeNode
Corresponds to the PMML
Node element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of childNodeelements associated with this node.final StringReturns the value of the "defaultChild" attribute.Returns the "estimateErrors" extension associated with this node.final StringgetId()Returns the value of the "id" attribute.Returns the predicate element associate with this node.final DoubleReturns the value of the "recordCount" attribute.final StringgetScore()Returns the value of the "score" attribute.final List<ScoreDistribution>Returns the list ofScoreDistributionelements associated with this node.final voidsetChildren(List<TreeNode> children) Sets the list of childNodeelements associated with this node.final voidsetDefaultChild(String defaultChild) Sets the value of the "defaultChild" attribute.voidsetEstimatedErrors(Double estimatedErrors) Sets the "estimateErrors" extension associated with this node.final voidSets the value of the "id" attribute.voidsetPredicate(Predicate predicate) Sets the predicate element associate with this node.final voidsetRecordCount(Double recordCount) Sets the value of the "recordCount" attribute.final voidSets the value of the "score" attribute.final voidsetScoreDistributions(List<ScoreDistribution> scoreDistributions) Sets the list ofScoreDistributionelements associated with this node.
-
Constructor Details
-
TreeNode
public TreeNode()Creates an emptyTreeNode
-
-
Method Details
-
getId
Returns the value of the "id" attribute.- Returns:
- the value of the "id" attribute.
-
setId
Sets the value of the "id" attribute.- Parameters:
id- the value of the "id" attribute.
-
getScore
Returns the value of the "score" attribute.- Returns:
- the value of the "score" attribute.
-
setScore
Sets the value of the "score" attribute.- Parameters:
score- the value of the "score" attribute.
-
getRecordCount
Returns the value of the "recordCount" attribute.- Returns:
- the value of the "recordCount" attribute.
-
setRecordCount
Sets the value of the "recordCount" attribute.- Parameters:
recordCount- the value of the "recordCount" attribute.
-
getDefaultChild
Returns the value of the "defaultChild" attribute.- Returns:
- the value of the "defaultChild" attribute.
-
setDefaultChild
Sets the value of the "defaultChild" attribute.- Parameters:
defaultChild- the value of the "defaultChild" attribute.
-
getScoreDistributions
Returns the list ofScoreDistributionelements associated with this node.- Returns:
- the list of
ScoreDistributionelements associated with this node.
-
setScoreDistributions
Sets the list ofScoreDistributionelements associated with this node.- Parameters:
scoreDistributions- the list ofScoreDistributionelements associated with this node.
-
getChildren
Returns the list of childNodeelements associated with this node.- Returns:
- the list of child
Nodeelements associated with this node.
-
setChildren
Sets the list of childNodeelements associated with this node.- Parameters:
children- the list of childNodeelements associated with this node.
-
getPredicate
Returns the predicate element associate with this node.- Returns:
- the predicate element associate with this node.
-
setPredicate
Sets the predicate element associate with this node.- Parameters:
predicate- the predicate element associate with this node.
-
getEstimatedErrors
Returns the "estimateErrors" extension associated with this node. "estimatedErrors" is a PMML extension that provides the estimated number of incorrectly classified items associated with a given node.- Returns:
- the "estimateErrors" extension associated with this node.
-
setEstimatedErrors
Sets the "estimateErrors" extension associated with this node. "estimatedErrors" is a PMML extension that provides the estimated number of incorrectly classified items associated with a given node.- Parameters:
estimatedErrors- the "estimateErrors" extension associated with this node.
-