Commit Graph

14 Commits

Author SHA1 Message Date
Luis Moreno
162bed2aa2 feat: added support to wasm (#94)
* test: run tests also in wasm targets

* fix: install rand with wasm-bindgen por wasm targets

* fix: use actual usize size to access buffer.

* fix: do not run functions that create files in wasm.

* test: do not run in wasm test that panics.

Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
2021-04-28 15:58:39 -04:00
Volodymyr Orlov
9475d500db feat: version change + api documentation updated 2020-12-27 18:39:37 -08:00
Volodymyr Orlov
810a5c429b feat: consolidates API 2020-12-24 18:36:23 -08:00
Volodymyr Orlov
74f0d9e6fb fix: formatting 2020-12-22 17:44:44 -08:00
Volodymyr Orlov
f685f575e0 feat: + cross_val_predict 2020-12-22 17:42:18 -08:00
Volodymyr Orlov
9b221979da fix: clippy, documentation and formatting 2020-12-22 16:35:28 -08:00
Volodymyr Orlov
a2be9e117f feat: + cross_validate, trait Predictor, refactoring 2020-12-22 15:41:53 -08:00
morenol
53351b2ece fix needless-range and clippy::ptr_arg warnings. (#36)
* Fix needless for loop range

* Do not ignore clippy::ptr_arg
2020-12-11 16:52:39 -04:00
Luis Moreno
85d2ecd1c9 Fix clippy errors after --all-features was enabled 2020-11-10 21:24:04 -04:00
Luis Moreno
d620f225ee Fix new warnings after rustup update 2020-11-10 00:20:26 -04:00
Luis Moreno
54886ebd72 Fix rust-2018-idioms warnings 2020-11-08 20:24:08 -04:00
Luis Moreno
860056c3ba Run: cargo clippy --fix -Z unstable-options and cargo fmt 2020-11-08 19:39:11 -04:00
Lorenzo
a2588f6f45 KFold cross-validation (#8)
* Add documentation and API
* Add public keyword
* Implement test_indices (debug version)
* Return indices as Vec of Vec
* Consume vector using drain()
* Use shape() to return num of samples
* Implement test_masks
* Implement KFold.split()
* Make trait public
* Add test for split
* Fix samples in shape()
* Implement shuffle
* Simplify return values
* Use usize for n_splits
Co-authored-by: VolodymyrOrlov <volodymyr.orlov@gmail.com>
2020-10-13 10:10:28 +01:00
Volodymyr Orlov
d28f13d849 feat: adds train/test split function; fixes bug in random forest 2020-09-13 16:23:30 -07:00