use of org.knime.base.node.mine.treeensemble.data.TreeNominalColumnMetaData in project knime-core by knime.
the class NominalSplitCandidate method getChildConditions.
/**
* {@inheritDoc}
*/
@Override
public TreeNodeCondition[] getChildConditions() {
TreeNominalColumnMetaData columnMeta = getColumnData().getMetaData();
NominalValueRepresentation[] values = columnMeta.getValues();
List<TreeNodeCondition> resultList = new ArrayList<TreeNodeCondition>(values.length);
for (int i = 0; i < values.length; i++) {
if (m_sumWeightsAttributes[i] >= TreeColumnData.EPSILON) {
resultList.add(new TreeNodeNominalCondition(columnMeta, i));
}
}
return resultList.toArray(new TreeNodeCondition[resultList.size()]);
}
Aggregations