return tree;
}
private ConstantDecisonTree majorityValue(DataSet ds) {
Learner learner = new MajorityLearner();
learner.train(ds);
return new ConstantDecisonTree(learner.predict(ds.getExample(0)));
}
private String chooseAttribute(DataSet ds, List<String> attributeNames) {
double greatestGain = 0.0;