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

Method score

JSAT/src/jsat/classifiers/linear/kernelized/DUOL.java:316–329  ·  view source on GitHub ↗
(Vec x, List<Double> qi, boolean store)

Source from the content-addressed store, hash-verified

314 }
315
316 private double score(Vec x, List<Double> qi, boolean store)
317 {
318 if(store)
319 kTmp.clear();
320 double score = 0;
321 for(int i = 0; i < S.size(); i++)
322 {
323 double tmp = k.eval(i, x, qi, S, accelCache);
324 if(store)
325 kTmp.add(tmp);
326 score += alphas.get(i)*tmp;
327 }
328 return score;
329 }
330
331 private double score(Vec x, List<Double> qi)
332 {

Callers 2

updateMethod · 0.95
getScoreMethod · 0.95

Calls 5

sizeMethod · 0.65
evalMethod · 0.65
clearMethod · 0.45
addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected