3 unstable releases
0.2.1 | Jan 18, 2021 |
---|---|
0.2.0 | Jan 7, 2021 |
0.1.0 | Jan 3, 2021 |
#575 in Science
25 downloads per month
15KB
255 lines
rand_split
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.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
README.md is automatically generated on CI using cargo-readme. Please, modify README.tpl or lib.rs instead (check the github worflow for more details).
Dependencies
~310KB