[][src]Function fbleau::utils::prepare_data

pub fn prepare_data(
    train_x: Array2<f64>,
    train_y: Array1<Label>,
    test_x: Array2<f64>,
    test_y: Array1<Label>,
    scale: bool
) -> (Array2<f64>, Array1<Label>, Array2<f64>, Array1<Label>, usize)

Prepare training and evaluation data.

It makes sure the labels are indexed starting from 0, and, if required, it scales the features.