org.knime.base.node.mine.decisiontree2
Class TempTreeNodeContainer
java.lang.Object
org.knime.base.node.mine.decisiontree2.TempTreeNodeContainer
class TempTreeNodeContainer
- extends Object
- Author:
- albrecht, University of Konstanz, Dominik Morent, KNIME.com, Zurich, Switzerland
TempTreeNodeContainer
TempTreeNodeContainer(int ownIndex,
String majorityClass,
double allClassFrequency,
int level,
String defaultChild)
- Parameters:
ownIndex
- index of this nodemajorityClass
- of this nodeallClassFrequency
- sum of class frequencieslevel
- depth of tree for this nodedefaultChild
- the index of the default child
addClassCount
void addClassCount(DataCell className,
double value)
- Parameters:
className
- to be added tovalue
- can be >1 in case of missing values
setPredicate
void setPredicate(PMMLPredicate pred)
- Parameters:
pred
- the child predicate to be set
getPredicate
public PMMLPredicate getPredicate()
- Returns:
- the predicate
getOwnIndex
int getOwnIndex()
- Returns:
- index
getMajorityClass
DataCell getMajorityClass()
- Returns:
- value (score)
getAllClassFrequency
double getAllClassFrequency()
- Returns:
- amount (record count)
getOwnClassFrequency
double getOwnClassFrequency()
- Returns:
- frequency of majority class in this node
getLevel
int getLevel()
- Returns:
- depth in tree
getDefaultChild
public int getDefaultChild()
- Returns:
- the defaultChild
getClassCounts
LinkedHashMap<DataCell,Double> getClassCounts()
- Returns:
- all class counts
toString
public String toString()
-
- Overrides:
toString
in class Object
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.