| 51 | private DecisionStump baseStump = new DecisionStump(); |
| 52 | |
| 53 | @Override |
| 54 | public double regress(DataPoint data) |
| 55 | { |
| 56 | if(data.numNumericalValues() != root.stump.numNumeric() || data.numCategoricalValues() != root.stump.numCategorical()) |
| 57 | throw new ModelMismatchException("Tree expected " + root.stump.numNumeric() + " numeric and " + |
| 58 | root.stump.numCategorical() + " categorical features, instead received data with " + |
| 59 | data.numNumericalValues() + " and " + data.numCategoricalValues() + " features respectively"); |
| 60 | return root.regress(data); |
| 61 | } |
| 62 | |
| 63 | @Override |
| 64 | public void train(RegressionDataSet dataSet, ExecutorService threadPool) |