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); } }