pub fn train_test_split<F: Float + Debug, R: Rng>(
x: &Array<F, IxDyn>,
y: &Array<F, IxDyn>,
test_size: f64,
shuffle: bool,
rng: &mut R,
) -> Result<TrainTestSplitResult<F>>
Expand description
Split data into training and testing sets
This function splits input and target data into training and testing sets.