Skip to main content

train_test_split

Function train_test_split 

Source
pub fn train_test_split(
    py: Python<'_>,
    x: PyReadonlyArray2<'_, f64>,
    _y: Option<PyReadonlyArray1<'_, f64>>,
    _test_size: Option<f64>,
    _train_size: Option<f64>,
    _random_state: Option<u64>,
    _shuffle: bool,
    _stratify: Option<PyReadonlyArray1<'_, f64>>,
) -> PyResult<(Py<PyArray2<f64>>, Py<PyArray2<f64>>, Py<PyArray1<f64>>, Py<PyArray1<f64>>)>
Expand description

Split arrays into random train and test subsets