train_test_split_regression

Function train_test_split_regression 

Source
pub fn train_test_split_regression(
    features: &Array2<f64>,
    labels: &Array1<f64>,
    test_ratio: f64,
    shuffle: bool,
) -> Result<(Array2<f64>, Array1<f64>, Array2<f64>, Array1<f64>)>
Expand description

Split regression data into train and test sets (with continuous labels)