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

Method getScore

JSAT/src/jsat/classifiers/linear/kernelized/CSKLR.java:397–400  ·  view source on GitHub ↗

Returns the binary logistic regression score @param y the sign of the desired class (-1 or 1) @param pre the raw coefficient score @return the probability in [0, 1] that the score is of the desired class

(double y, double pre)

Source from the content-addressed store, hash-verified

395 * @return the probability in [0, 1] that the score is of the desired class
396 */
397 protected static double getScore(double y, double pre)
398 {
399 return 1/(1+Math.exp(-y*pre));
400 }
401
402 @Override
403 public CSKLR clone()

Callers 4

updateMethod · 0.95
classifyMethod · 0.95
classifyMethod · 0.95
trainCMethod · 0.95

Calls 1

expMethod · 0.80

Tested by

no test coverage detected