- java.lang.Object
-
- com.pervasive.datarush.analytics.decisiontree.TreeNode
-
public final class TreeNode extends Object
Corresponds to the PMMLNode
element.
-
-
Constructor Summary
Constructors Constructor Description TreeNode()
Creates an emptyTreeNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TreeNode>
getChildren()
Returns the list of childNode
elements associated with this node.String
getDefaultChild()
Returns the value of the "defaultChild" attribute.Double
getEstimatedErrors()
Returns the "estimateErrors" extension associated with this node.String
getId()
Returns the value of the "id" attribute.Predicate
getPredicate()
Returns the predicate element associate with this node.Double
getRecordCount()
Returns the value of the "recordCount" attribute.String
getScore()
Returns the value of the "score" attribute.List<ScoreDistribution>
getScoreDistributions()
Returns the list ofScoreDistribution
elements associated with this node.void
setChildren(List<TreeNode> children)
Sets the list of childNode
elements associated with this node.void
setDefaultChild(String defaultChild)
Sets the value of the "defaultChild" attribute.void
setEstimatedErrors(Double estimatedErrors)
Sets the "estimateErrors" extension associated with this node.void
setId(String id)
Sets the value of the "id" attribute.void
setPredicate(Predicate predicate)
Sets the predicate element associate with this node.void
setRecordCount(Double recordCount)
Sets the value of the "recordCount" attribute.void
setScore(String score)
Sets the value of the "score" attribute.void
setScoreDistributions(List<ScoreDistribution> scoreDistributions)
Sets the list ofScoreDistribution
elements associated with this node.
-
-
-
Method Detail
-
getId
public final String getId()
Returns the value of the "id" attribute.- Returns:
- the value of the "id" attribute.
-
setId
public final void setId(String id)
Sets the value of the "id" attribute.- Parameters:
id
- the value of the "id" attribute.
-
getScore
public final String getScore()
Returns the value of the "score" attribute.- Returns:
- the value of the "score" attribute.
-
setScore
public final void setScore(String score)
Sets the value of the "score" attribute.- Parameters:
score
- the value of the "score" attribute.
-
getRecordCount
public final Double getRecordCount()
Returns the value of the "recordCount" attribute.- Returns:
- the value of the "recordCount" attribute.
-
setRecordCount
public final void setRecordCount(Double recordCount)
Sets the value of the "recordCount" attribute.- Parameters:
recordCount
- the value of the "recordCount" attribute.
-
getDefaultChild
public final String getDefaultChild()
Returns the value of the "defaultChild" attribute.- Returns:
- the value of the "defaultChild" attribute.
-
setDefaultChild
public final void setDefaultChild(String defaultChild)
Sets the value of the "defaultChild" attribute.- Parameters:
defaultChild
- the value of the "defaultChild" attribute.
-
getScoreDistributions
public final List<ScoreDistribution> getScoreDistributions()
Returns the list ofScoreDistribution
elements associated with this node.- Returns:
- the list of
ScoreDistribution
elements associated with this node.
-
setScoreDistributions
public final void setScoreDistributions(List<ScoreDistribution> scoreDistributions)
Sets the list ofScoreDistribution
elements associated with this node.- Parameters:
scoreDistributions
- the list ofScoreDistribution
elements associated with this node.
-
getChildren
public final List<TreeNode> getChildren()
Returns the list of childNode
elements associated with this node.- Returns:
- the list of child
Node
elements associated with this node.
-
setChildren
public final void setChildren(List<TreeNode> children)
Sets the list of childNode
elements associated with this node.- Parameters:
children
- the list of childNode
elements associated with this node.
-
getPredicate
public Predicate getPredicate()
Returns the predicate element associate with this node.- Returns:
- the predicate element associate with this node.
-
setPredicate
public void setPredicate(Predicate predicate)
Sets the predicate element associate with this node.- Parameters:
predicate
- the predicate element associate with this node.
-
getEstimatedErrors
public Double 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
public void setEstimatedErrors(Double estimatedErrors)
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.
-
-