Skip to main content

fit_logistic

Function fit_logistic 

Source
pub fn fit_logistic(
    x: &[f64],
    y: &[f64],
    n: usize,
    p: usize,
    fit_intercept: bool,
) -> Result<GlmModel, LearningError>
Expand description

Convenience: logistic regression (Bernoulli y ∈ {0,1}).