public static DecisionTree getStumpFor(DataSet ds, String attributeName,
String attributeValue, String returnValueIfMatched,
List<String> unmatchedValues, String returnValueIfUnmatched)
{
DecisionTree dt = new DecisionTree(attributeName);
dt.addLeaf(attributeValue, returnValueIfMatched);
foreach (String unmatchedValue in unmatchedValues)
{
dt.addLeaf(unmatchedValue, returnValueIfUnmatched);
}
return dt;
}