jaxopt.objective.binary_logreg
- jaxopt.objective.binary_logreg = <jaxopt._src.objective.BinaryLogreg object>
Binary logistic regression.
\[\frac{1}{n} \sum_{i=1}^n \ell(w^\top x_i, y_i)\]where \(\ell\) is
binary_logistic_lossandX, y = data.- Parameters
w – a vector of shape
(n_features, ).data – a tuple
(X, y)whereXis a matrix of shape(n_samples, n_features)andyis a vector of shape(n_samples,), containing0or1values.
- Returns
objective value.
Example:
value = binary_logreg(w, (X, y))