|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.decisiontree2.model.DecisionTreeNode
org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplit
org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplitNominal
@Deprecated public class DecisionTreeNodeSplitNominal
Is replaced by the more general DecisionTreeNodeSplitPMML node.
| Constructor Summary | |
|---|---|
DecisionTreeNodeSplitNominal()
Deprecated. Empty Constructor visible only within package. |
|
DecisionTreeNodeSplitNominal(int nodeId,
DataCell majorityClass,
LinkedHashMap<DataCell,Double> classCounts,
String splitAttribute,
DataCell[] splitValues,
DecisionTreeNode[] children)
Deprecated. Constructor of base class. |
|
DecisionTreeNodeSplitNominal(Node xmlNode,
DataCellStringMapper mapper)
Deprecated. Constructor of derived class. |
|
| Method Summary | |
|---|---|
void |
addCoveredColor(DataCell cell,
DataRow row,
DataTableSpec spec,
double weight)
Deprecated. Add colors for a pattern given as a row of values. |
void |
addCoveredPattern(DataCell cell,
DataRow row,
DataTableSpec spec,
double weight)
Deprecated. Add patterns given as a row of values if they fall within a specific node. |
boolean |
addNodeToTreeDepthFirst(DecisionTreeNode node,
int ix)
Deprecated. Add a new node to the tree structure based on a depth-first indexing strategy. |
Set<RowKey> |
coveredPattern()
Deprecated. |
LinkedHashMap<DataCell,Double> |
getClassCounts(DataCell cell,
DataRow row,
DataTableSpec spec)
Deprecated. Determine class counts for a new pattern given as a row of values. |
DataCell[] |
getSplitValues()
Deprecated. Returns the values array of this nodes split attribute. |
String |
getStringSummary()
Deprecated. |
void |
loadNodeSplitInternalsFromPredParams(ModelContentRO pConf)
Deprecated. Load internal SplitNode settings from a ModelContent object. |
void |
saveNodeSplitInternalsToPredParams(ModelContentWO pConf)
Deprecated. save internal SplitNode settings to a ModelContent object. |
| Methods inherited from class org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplit |
|---|
addCoveredColor, addCoveredPattern, addNode, children, getAllowsChildren, getChildAt, getChildCount, getChildNodeAt, getChildren, getClassCounts, getCountOfSubtree, getIndex, getMVStrategy, getNodeClassWeights, getNTCStrategy, getSplitAttr, isLeaf, loadNodeInternalsFromPredParams, makeRoomForKids, replaceChild, saveNodeInternalsToPredParams, setChildNodeIndex, setMVStrategy, setNTCStrategy |
| Methods inherited from class org.knime.base.node.mine.decisiontree2.model.DecisionTreeNode |
|---|
addColorToMap, coveredColors, createNewNode, createNodeFromPredictorParams, getClassCounts, getCustomData, getEntireClassCount, getMajorityClass, getOverallColorCount, getOwnClassCount, getOwnIndex, getParent, getPrefix, getWinnerAndClasscounts, loadFromPredictorParams, newColors, resetColorInformation, saveToPredictorParams, setCoveredColors, setCustomData, setParent, setPrefix, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
DecisionTreeNodeSplitNominal()
public DecisionTreeNodeSplitNominal(Node xmlNode,
DataCellStringMapper mapper)
xmlNode - XML node infomapper - map translating column names to DataCells and vice versa
public DecisionTreeNodeSplitNominal(int nodeId,
DataCell majorityClass,
LinkedHashMap<DataCell,Double> classCounts,
String splitAttribute,
DataCell[] splitValues,
DecisionTreeNode[] children)
nodeId - the id of this nodemajorityClass - the majority class of the records in this nodeclassCounts - the class distribution of the data in this nodesplitAttribute - the attribute name on which to splitsplitValues - the split values used to partition the datachildren - the children split according to the split values| Method Detail |
|---|
public LinkedHashMap<DataCell,Double> getClassCounts(DataCell cell,
DataRow row,
DataTableSpec spec)
getClassCounts in class DecisionTreeNodeSplitcell - the call to be used for classification at this noderow - input patternspec - the corresponding table spec
public void addCoveredPattern(DataCell cell,
DataRow row,
DataTableSpec spec,
double weight)
throws Exception
addCoveredPattern in class DecisionTreeNodeSplitcell - the cell to be used for classification at this noderow - input patternspec - the corresponding table specweight - the weight of this row (between 0.0 and 1.0)
Exception - if something went wrong (unknown attribute for example)
public void addCoveredColor(DataCell cell,
DataRow row,
DataTableSpec spec,
double weight)
throws Exception
addCoveredColor in class DecisionTreeNodeSplitcell - the cell to be used for the split at this levelrow - input patternspec - the corresponding table specweight - the weight of the row (between 0.0 and 1.0)
Exception - if something went wrong (unknown attriubte for example)public Set<RowKey> coveredPattern()
coveredPattern in class DecisionTreeNodeSplitpublic String getStringSummary()
getStringSummary in class DecisionTreeNode
public boolean addNodeToTreeDepthFirst(DecisionTreeNode node,
int ix)
addNodeToTreeDepthFirst in class DecisionTreeNodeSplitnode - node to be insertedix - index of this node in depth first traversal order
public void saveNodeSplitInternalsToPredParams(ModelContentWO pConf)
saveNodeSplitInternalsToPredParams in class DecisionTreeNodeSplitpConf - configuration object to save decision tree to
public void loadNodeSplitInternalsFromPredParams(ModelContentRO pConf)
throws InvalidSettingsException
loadNodeSplitInternalsFromPredParams in class DecisionTreeNodeSplitpConf - configuration object to load decision tree from.
InvalidSettingsException - if something goes wrongpublic DataCell[] getSplitValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||