> the loss shall be -np.sum(np.log(1 + np.exp(-y[:, None]*np.dot(X, w)))) + .5 *
> alpha * w.dot(w)

> maybe it's a numerical trick..

It's a numerical trick, and it's quite important.