Skip to main content

Module logistic_regression

Module logistic_regression 

Source
Expand description

Logistic (softmax) regression.

See the book entry Logistic regression.

Structs§

LogisticRegression
Multinomial logistic regression: class probabilities softmax(W x + b), trained by minimising the mean negative log-likelihood plus an L2 penalty λ/2 ‖W‖² (the intercepts are not penalised) with L-BFGS. With two classes this is ordinary logistic regression. Standardise the features first for fast convergence.