MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / train

Method train

JSAT/src/jsat/classifiers/svm/LSSVM.java:413–420  ·  view source on GitHub ↗
(RegressionDataSet dataSet, Regressor warmSolution, ExecutorService threadPool)

Source from the content-addressed store, hash-verified

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)

Calls 3

mainLoopMethod · 0.95
getTargetValuesMethod · 0.80
arrayCopyMethod · 0.45