Binomial
Binomial defaults to the logit link and the averaged Bernoulli negative log likelihood:
The predictor derivatives are
The implementation evaluates the loss and derivatives stably for large logits. Responses must be finite and lie in . Fractional values represent proportions with equal observation weights; this API does not accept trial counts or arbitrary observation weights. The intercept is fitted by default.
Evaluate the loss
use ;
Fitted predictions are logits. Apply the logistic function to obtain probabilities. See logistic regression for a stable conversion and a complete fit.
Proximal gradient supports the built-in proximal penalties. IRLS supports L1, ridge, and elastic net. The hybrid solver supports clustered lasso, chain fused lasso, and SLOPE. Unpenalized separated data may have no finite minimizer; inspect termination and choose a regularized model when appropriate.
Use .with_link(Probit) or a custom Rust link for IRLS fitting and paths. Predictions then use the selected predictor scale; call the datafit's .inverse_link(eta) to obtain probabilities.
API: shrinkage::Binomial.
