Crate rand_split

Source
Expand description

This crate achieves the functionality of sklearn’s train_test_split to generate splits of the data (in this case, a slice), generalized for an arbitrary number of splits. It both provides functions (see split_parts) that work on slices and iterator traits (see PartsSplit)to work with streams of data.

Check out the examples in the repository for more information.

Traits§

  • An iterator trait to generate splits from a data stream of unknown lenght.
  • An iterator type to generate train/test/validaton splits from a data stream of unknown lenght.

Functions§