Skip to main content

fit

Function fit 

pub fn fit(
    map: ModelMap,
    size: usize,
    inputs: &[Vec<f64>],
    targets: &[f64],
) -> Option<(Belief, ModelRaster)>
Expand description

Fits training pairs and samples every row, retaining the model for hover. Returns None when the pairs cannot train a model or the size is zero.