(DataPoint data)
| 156 | } |
| 157 | |
| 158 | @Override |
| 159 | public CategoricalResults classify(DataPoint data) |
| 160 | { |
| 161 | if (w != null && loss instanceof LossC) |
| 162 | return ((LossC) loss).getClassification(w.dot(data.getNumericalValues())); |
| 163 | else |
| 164 | throw new UntrainedModelException("Model was not trained with a classification function"); |
| 165 | } |
| 166 | |
| 167 | @Override |
| 168 | public void trainC(ClassificationDataSet dataSet, ExecutorService threadPool) |