Skip to main content

IndexSplit

Type Alias IndexSplit 

Source
pub type IndexSplit = (Vec<usize>, Vec<usize>);
Expand description

A pair of disjoint row-index lists that a splitting function produces.

The first list is the training side, the second is the held-out side (the test set for train_test_split / stratified_split, the validation fold for k_fold_indices). Use them to index into your arrays with ndarray’s select(Axis(0), &indices).