| 411 | } |
| 412 | |
| 413 | @Override |
| 414 | public void train(RegressionDataSet dataSet, Regressor warmSolution, ExecutorService threadPool) |
| 415 | { |
| 416 | if(warmSolution != null && !(warmSolution instanceof LSSVM)) |
| 417 | throw new FailedToFitException("Warm solution must be an implementation of LS-SVM, not " + warmSolution.getClass()); |
| 418 | double[] targets = dataSet.getTargetValues().arrayCopy(); |
| 419 | mainLoop(dataSet, (LSSVM)warmSolution, targets, threadPool); |
| 420 | } |
| 421 | |
| 422 | @Override |
| 423 | public void train(RegressionDataSet dataSet, Regressor warmSolution) |