|
||||||||||
| 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
org.knime.base.node.mine.decisiontree2.model.DecisionTreeNodeSplitNominalBinary
@Deprecated public class DecisionTreeNodeSplitNominalBinary
Is replaced by the more general DecisionTreeNodeSplitPMML node. Represents a nominal split node that splits subsets of values in a binary manner.
| Constructor Summary | |
|---|---|
DecisionTreeNodeSplitNominalBinary()
Deprecated. Empty Constructor visible only within package. |
|
DecisionTreeNodeSplitNominalBinary(int nodeId,
DataCell majorityClass,
LinkedHashMap<DataCell,Double> classCounts,
String splitAttribute,
DataCell[] splitValues,
int[] splitMappingsLeft,
int[] splitMappingsRight,
DecisionTreeNode[] children)
Deprecated. Constructor for a nominal split in binary format. |
|
DecisionTreeNodeSplitNominalBinary(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. |
List<Integer> |
getLeftChildIndices()
Deprecated. |
List<Integer> |
getRightChildIndices()
Deprecated. |
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.DecisionTreeNodeSplitNominal |
|---|
getSplitValues |
| 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 |
|---|
DecisionTreeNodeSplitNominalBinary()
public DecisionTreeNodeSplitNominalBinary(Node xmlNode,
DataCellStringMapper mapper)
xmlNode - XML node infomapper - map translating column names to DataCells and vice versa
public DecisionTreeNodeSplitNominalBinary(int nodeId,
DataCell majorityClass,
LinkedHashMap<DataCell,Double> classCounts,
String splitAttribute,
DataCell[] splitValues,
int[] splitMappingsLeft,
int[] splitMappingsRight,
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 - all nominal split values in the order of their integer
mappingsplitMappingsLeft - the integer mapping values for the nominal
values that fall into the left partitionsplitMappingsRight - the integer mapping values for the nominal
values that fall into the right partitionchildren - the children split according to the split values| Method Detail |
|---|
public LinkedHashMap<DataCell,Double> getClassCounts(DataCell cell,
DataRow row,
DataTableSpec spec)
getClassCounts in class DecisionTreeNodeSplitNominalcell - 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 DecisionTreeNodeSplitNominalcell - 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 DecisionTreeNodeSplitNominalcell - 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 DecisionTreeNodeSplitNominalpublic String getStringSummary()
getStringSummary in class DecisionTreeNodeSplitNominal
public boolean addNodeToTreeDepthFirst(DecisionTreeNode node,
int ix)
addNodeToTreeDepthFirst in class DecisionTreeNodeSplitNominalnode - node to be insertedix - index of this node in depth first traversal order
public void saveNodeSplitInternalsToPredParams(ModelContentWO pConf)
saveNodeSplitInternalsToPredParams in class DecisionTreeNodeSplitNominalpConf - configuration object to save decision tree to
public void loadNodeSplitInternalsFromPredParams(ModelContentRO pConf)
throws InvalidSettingsException
loadNodeSplitInternalsFromPredParams in class DecisionTreeNodeSplitNominalpConf - configuration object to load decision tree from.
InvalidSettingsException - if something goes wrongpublic List<Integer> getLeftChildIndices()
public List<Integer> getRightChildIndices()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||