public void clasifyTreeThread(DecisionTree tree, int from, int to) { if (to > dataValues.Count) { to = dataValues.Count; } for (int i = from; i < to; i++) { tree.classifyTuple(dataValues[i]); } }
public void classifyTuple(AnalyzedData tuple) { if (leaf != null) { tuple.DataClass = leaf; return; } if (checkCondition(tuple.Attributes[nodeAttribute].getValueAsString())) { leftChild.classifyTuple(tuple); } else { rightChild.classifyTuple(tuple); } }