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

Method score

JSAT/src/jsat/classifiers/linear/kernelized/OSKL.java:355–366  ·  view source on GitHub ↗
(Vec x, List<Double> qi)

Source from the content-addressed store, hash-verified

353 };
354
355 private double score(Vec x, List<Double> qi)
356 {
357 DoubleList alphToUse;
358 if(useAverageModel && t > burnIn)
359 {
360 updateAverage();
361 alphToUse = alphaAveraged;
362 }
363 else
364 alphToUse = alphas;
365 return k.evalSum(vecs, accelCache, alphToUse.getBackingArray(), x, qi, 0, alphToUse.size());
366 }
367
368 /**
369 * Computes the score and saves the results of the kernel computations in

Callers 2

classifyMethod · 0.95
getScoreMethod · 0.95

Calls 4

updateAverageMethod · 0.95
getBackingArrayMethod · 0.95
sizeMethod · 0.95
evalSumMethod · 0.65

Tested by

no test coverage detected