Algorithm 2.
Training (model generation) stage | |
1. | Initialize wm = 0 |
2. | Estimate log-odds ratio wm using maximum likelihood estimation |
wm = argmax l(w), where log-likelihood | |
and | |
Prediction (testing) stage | |
1. | Calculate posterior probability Pr(Y = −1|X = x) using |
2. |