コード例 #1
0
 internal DecisionTreeNode FindLeaf(FeatureVector vector)
 {
     // TODO: Make this less binary dependent.
     if (vector.Features[f_i] > 0 && TrueBranch != null)
     {
         return(TrueBranch.FindLeaf(vector));
     }
     else if (FalseBranch != null)
     {
         return(FalseBranch.FindLeaf(vector));
     }
     else
     {
         return(this);
     }
 }