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)
| 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() |