Commit Graph

430 Commits

Author SHA1 Message Date
Luis Moreno
4b654b25ac Merge pull request #97 from smartcorelib/dependabot/cargo/ndarray-0.15
build(deps): update ndarray requirement from 0.14 to 0.15
2021-04-28 17:41:56 -04:00
dependabot-preview[bot]
5a2e1f1262 build(deps): update ndarray requirement from 0.14 to 0.15
Updates the requirements on [ndarray](https://github.com/rust-ndarray/ndarray) to permit the latest version.
- [Release notes](https://github.com/rust-ndarray/ndarray/releases)
- [Changelog](https://github.com/rust-ndarray/ndarray/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-ndarray/ndarray/compare/ndarray-rand-0.14.0...0.15.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-28 21:41:48 +00:00
Luis Moreno
377d5d0b06 Merge pull request #96 from smartcorelib/dependabot/cargo/rand-0.8.3
build(deps): update rand requirement from 0.7.3 to 0.8.3
2021-04-28 17:40:02 -04:00
Luis Moreno
9ce448379a docs: create changelog (#102)
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
2021-04-28 16:58:15 -04:00
Luis Moreno
c295a0d1bb fix: fix code to be compatible with rand 0.8, following the recommendations of https://rust-random.github.io/book/update-0.8.html and https://docs.rs/getrandom/0.2.2/getrandom/#webassembly-support 2021-04-28 16:28:43 -04:00
dependabot-preview[bot]
703dc9688b build(deps): update rand_distr requirement from 0.3.0 to 0.4.0
Updates the requirements on [rand_distr](https://github.com/rust-random/rand) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/compare/rand_distr-0.3.0...rand_distr-0.4.0)
2021-04-28 16:25:05 -04:00
dependabot-preview[bot]
790979a26d build(deps): update rand requirement from 0.7.3 to 0.8.3
Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/compare/0.7.3...0.8.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-28 20:00:24 +00:00
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
Luis Moreno
5ed5772a4e Merge pull request #95 from morenol/lmm/clippy_151
style(lint): fix clippy warnings
2021-04-28 00:08:27 -04:00
Luis Moreno
d9814c0918 style(lint): fix clippy warnings 2021-04-27 09:32:01 -04:00
Luis Moreno
7f44b93838 Merge pull request #89 from morenol/lmm/github_actions
Move CI to github actions
2021-03-05 19:02:11 -04:00
Luis Moreno
02200ae1e3 Only run tests once per OS 2021-03-05 18:53:54 -04:00
Luis Moreno
3dc5336514 Move CI to github actions 2021-03-05 17:57:28 -04:00
Luis Moreno
abeff7926e Merge pull request #88 from morenol/lmm/use_usize_size
fix:  usize::from_le_bytes buffer
2021-03-05 16:59:59 -04:00
Luis Moreno
1395cc6518 fix: Use usize time for usize::from_le_bytes buffer 2021-03-05 10:25:34 -04:00
Volodymyr Orlov
4335ee5a56 Fixes width and hight parameters of the logo 2021-02-26 12:43:10 -08:00
Volodymyr Orlov
4c1dbc3327 Fixes width and hight parameters of the logo 2021-02-26 12:34:05 -08:00
VolodymyrOrlov
a920959ae3 Merge pull request #83 from z1queue/development
rename svm svr to svc in tests and docs
2021-02-25 18:57:29 -08:00
zhangyiqun01
6d58dbe2a2 rename svm svr to svc in tests and docs 2021-02-26 10:52:04 +08:00
zEqueue
023b449ff1 Merge pull request #1 from smartcorelib/development
update
2021-02-26 10:47:50 +08:00
zhangyiqun01
cd44f1d515 reset 2021-02-26 10:47:21 +08:00
Luis Moreno
1b42f8a396 feat: Add getters for naive bayes structs (#74)
* feat: Add getters for GaussianNB

* Add classes getter to BernoulliNB

Add classes getter to CategoricalNB

Add classes getter to MultinomialNB

* Add feature_log_prob getter to MultinomialNB

* Add class_count to NB structs

* Add n_features getter for NB

* Add feature_count to MultinomialNB and BernoulliNB

* Add n_categories to CategoricalNB

* Implement feature_log_prob and category_count getter for CategoricalNB

* Implement feature_log_prob for BernoulliNB
2021-02-25 15:44:34 -04:00
VolodymyrOrlov
c0be45b667 Merge pull request #82 from cmccomb/development
Adding `make_moons` data generator
2021-02-25 09:56:05 -08:00
zhangyiqun01
0e9c517b1a rename svm svr to svc in tests and docs 2021-02-25 15:59:09 +08:00
Chris McComb
fed11f005c Fixed formatting to pass cargo format check. 2021-02-17 21:29:51 -05:00
Chris McComb
483a21bec0 Oops, test was failing due to typo. Fixed now. 2021-02-17 21:22:41 -05:00
Chris McComb
4fb2625a33 Implemented make_moons generator per https://github.com/scikit-learn/scikit-learn/blob/95119c13a/sklearn/datasets/_samples_generator.py#L683 2021-02-17 21:22:06 -05:00
Luis Moreno
a30802ec43 fix: Change to compile for wasm32-unknown-unknown target (#80) 2021-02-16 22:20:02 -04:00
Luis Moreno
4af69878e0 fix: Fix new clippy warnings (#79)
* Fix new clippy warnings

* Allow clippy::suspicious-operation-groupings
2021-02-16 18:19:14 -04:00
VolodymyrOrlov
745d0b570e Merge pull request #76 from gaxler/OneHotEncoder
One hot encoder
2021-02-11 17:42:57 -08:00
gaxler
6b5bed6092 remove old 2021-02-09 22:01:59 -08:00
gaxler
af6ec2d402 rename categorical 2021-02-09 22:01:34 -08:00
gaxler
828df4e338 Use CategoryMapper to transform an iterator. No more passing iterator to SeriesEncoders 2021-02-03 13:42:27 -08:00
gaxler
374dfeceb9 No more SeriesEncoders. 2021-02-03 13:41:25 -08:00
gaxler
3cc20fd400 Move all functionality to CategoryMapper (one-hot and ordinal). 2021-02-03 13:39:26 -08:00
gaxler
700d320724 simplify SeriesEncoder trait 2021-02-03 10:45:25 -08:00
gaxler
ef06f45638 Switch to use SeriesEncoder trait 2021-02-02 18:21:06 -08:00
gaxler
237b1160b1 doc update 2021-02-02 18:20:27 -08:00
gaxler
d31145b4fe Define common series encoder behavior 2021-02-02 18:19:36 -08:00
gaxler
19ff6df84c Separate mapper object 2021-02-02 17:40:58 -08:00
gaxler
228b54baf7 fmt 2021-02-01 11:24:50 -08:00
gaxler
03b9f76e9f Doc+Naming Improvement 2021-02-01 11:24:20 -08:00
gaxler
a882741e12 If transform fails - fail before copying the whole matrix
(changed the order of coping, first do the categorical, than copy ther rest)
2021-02-01 11:20:03 -08:00
gaxler
f4b5936dcf fmt 2021-01-30 20:18:52 -08:00
gaxler
863be5ef75 style fixes 2021-01-30 20:09:52 -08:00
gaxler
ca0816db97 Clippy fixes 2021-01-30 19:55:04 -08:00
gaxler
2f03c1d6d7 module name change 2021-01-30 19:54:42 -08:00
gaxler
c987d39d43 tests + force Categorizable be RealNumber 2021-01-30 19:31:09 -08:00
gaxler
fd6b2e8014 Transform matrix 2021-01-30 19:29:58 -08:00
gaxler
cd5611079c Fit OneHotEncoder 2021-01-30 19:29:33 -08:00