(ClassificationDataSet dataSet, ExecutorService threadPool)
| 360 | } |
| 361 | |
| 362 | @Override |
| 363 | public void trainC(ClassificationDataSet dataSet, ExecutorService threadPool) |
| 364 | { |
| 365 | predicting = dataSet.getPredicting(); |
| 366 | vecList = new ArrayList<VecPaired<Vec, Integer>>(dataSet.getSampleSize()); |
| 367 | for(int i = 0; i < dataSet.getSampleSize(); i++) |
| 368 | vecList.add(new VecPaired<Vec, Integer>(dataSet.getDataPoint(i).getNumericalValues(), dataSet.getDataPointCategory(i))); |
| 369 | if(threadPool == null || threadPool instanceof FakeExecutor) |
| 370 | vc = vcf.getVectorCollection(vecList, new EuclideanDistance()); |
| 371 | else |
| 372 | vc = vcf.getVectorCollection(vecList, new EuclideanDistance(), threadPool); |
| 373 | } |
| 374 | |
| 375 | @Override |
| 376 | public void trainC(ClassificationDataSet dataSet) |
nothing calls this directly
no test coverage detected