예제 #1
0
 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]);
     }
 }
예제 #2
0
        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);
            }
        }