Function train_test_split

Source
pub fn train_test_split<D: Dimension + RemoveAxis, D2: Dimension + RemoveAxis, Feature: Clone, Label: Clone>(
    arr: &Array<Feature, D>,
    y: &Array<Label, D2>,
    test_size: f64,
) -> (Array<Feature, D>, Array<Feature, D>, Array<Label, D2>, Array<Label, D2>)
Expand description

Split data and features into training and testing set. test_size must be between 0 and 1. panics if test_size is outside 0 and 1.