Logistic Regression

Logistic regression models the relationship between an input variable \({\bf x}\) and a binary output variable \(y\) by fitting a logistic function.

LogReg(X::Matrix, y::Vector; kernel::Symbol=:linear)

Initialize a logistic regression object with a data matrix \({\bf X} \in \mathbb{R}^{n\times m}\), a label binary label vector \({\bf y} \in \mathbb{R}^{n}\) of \(n\) \(m\)-dimensional examples, and a kernel function.

Implements: optimize