[](https://crates.io/crates/rand_split)
[](https://docs.rs/rand_split/)
[](https://github.com/carrascomj/rand_split/actions)
# rand_split
This crate achieves the functionality of [sklearn's train_test_split](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html)
to generate splits of the data (in this case, a slice), generalized for an
arbitrary number of splits (see [split_parts](./fn.split_parts.html)).
It also provides some handy wrappers to generate [train-test](./fn.train_test_split.html) and
[train-test-validation](./fn.ttv_split.html) splits.
## License
Licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](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](https://github.com/livioribeiro/cargo-readme). Please, modify README.tpl or lib.rs instead (check [the github worflow](https://github.com/carrascomj/rust_sbml/blob/trunk/.github/workflows/readme.yml) for more details).