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

Method trainC

JSAT/src/jsat/classifiers/knn/DANN.java:362–373  ·  view source on GitHub ↗
(ClassificationDataSet dataSet, ExecutorService threadPool)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 7

getPredictingMethod · 0.80
getNumericalValuesMethod · 0.80
getDataPointCategoryMethod · 0.80
getVectorCollectionMethod · 0.65
getSampleSizeMethod · 0.45
addMethod · 0.45
getDataPointMethod · 0.45

Tested by

no test coverage detected