(DataPoint data)
| 167 | } |
| 168 | |
| 169 | @Override |
| 170 | public CategoricalResults classify(DataPoint data) |
| 171 | { |
| 172 | CategoricalResults cr = new CategoricalResults(predicting.getNumOfCategories()); |
| 173 | |
| 174 | for(ExtraTree tree : forrest) |
| 175 | cr.incProb(tree.classify(data).mostLikely(), 1.0); |
| 176 | cr.normalize(); |
| 177 | return cr; |
| 178 | |
| 179 | } |
| 180 | |
| 181 | private void doTraining(ExecutorService threadPool, DataSet dataSet) throws FailedToFitException |
| 182 | { |