Skip to main content

make_regression

Function make_regression 

Source
pub fn make_regression(
    samples: usize,
    features: usize,
    noise: f64,
    seed: u64,
) -> (R2D, R1D, R1D, f64)
Expand description

A linear regression problem y = Xw + b + noise with standard-normal features. Returns (x, y, true weights, true intercept).