Commit Graph

418 Commits

Author SHA1 Message Date
VolodymyrOrlov c172c407d2 Merge pull request #35 from smartcorelib/lasso
LASSO
2020-12-02 17:34:54 -08:00
Volodymyr Orlov 67e5829877 simplifies generic matrix.ab implementation 2020-11-25 12:23:04 -08:00
morenol 89a5136191 Change implementation of to_row_vector for nalgebra (#34)
* Add failing test

* Change implementation of to_row_vector for nalgebra
2020-11-25 14:39:02 -04:00
Volodymyr Orlov f9056f716a lasso: minor change in unit test 2020-11-24 19:21:27 -08:00
Volodymyr Orlov 583284e66f feat: adds LASSO 2020-11-24 19:12:53 -08:00
morenol 9db993939e Add serde to CategoricalNB (#30)
* Add serde to CategoricalNB

* Implement PartialEq for CategoricalNBDistribution
2020-11-19 16:07:10 -04:00
morenol ad3ac49dde Implement GaussianNB (#27)
* feat: Add GaussianNB
2020-11-19 14:19:22 -04:00
morenol 72e9f8293f Use log likelihood to make calculations more stable (#28)
* Use log likelihood to make calculations more stable

* Fix problem with class_count in categoricalnb

* Use a similar approach to the one used in scikitlearn to define which are the possible categories of each feature.
2020-11-16 23:56:50 -04:00
morenol aeddbc8a21 Merge pull request #25 from morenol/lmm/utils
Add capability to convert a slice to a BaseVector
2020-11-12 17:49:29 -04:00
Luis Moreno 6587ac032b Rename to from_array 2020-11-11 22:23:56 -04:00
Luis Moreno 49487bccd3 Rename trait function 2020-11-11 22:10:01 -04:00
Luis Moreno 900078cb04 Implement abstract method to convert a slice to a BaseVector, Implement RealNumberVector over BaseVector instead of over Vec<T> 2020-11-11 22:10:01 -04:00
VolodymyrOrlov 82464f41e4 Merge pull request #23 from smartcorelib/ridge
Ridge regression
2020-11-11 17:59:24 -08:00
Volodymyr Orlov 830a0d9194 fix: formatting 2020-11-11 17:26:49 -08:00
Volodymyr Orlov f0371673a4 fix: changes recommended by Clippy 2020-11-11 17:23:49 -08:00
VolodymyrOrlov 8f72716fe9 Merge branch 'development' into ridge 2020-11-11 16:12:34 -08:00
Volodymyr Orlov cc26555bfd fix: fixes suggested by Clippy 2020-11-11 16:10:37 -08:00
Volodymyr Orlov c42fccdc22 fix: ridge regression, code refactoring 2020-11-11 15:59:04 -08:00
morenol b86c553bb1 Merge pull request #24 from morenol/lmm/clippy_ci
Add clippy CI job
2020-11-11 17:11:52 -04:00
Volodymyr Orlov 7a4fe114d8 fix: ridge regression, formatting 2020-11-11 12:01:57 -08:00
Volodymyr Orlov ca3a3a101c fix: ridge regression, post-review changes 2020-11-11 12:00:58 -08:00
Luis Moreno f46d3ba94c Address feedback 2020-11-10 21:24:08 -04:00
Luis Moreno 85d2ecd1c9 Fix clippy errors after --all-features was enabled 2020-11-10 21:24:04 -04:00
morenol 126b306681 Update .circleci/config.yml
Co-authored-by: VolodymyrOrlov <volodymyr.orlov@gmail.com>
2020-11-10 20:50:41 -04:00
Luis Moreno 18df9c758c Fix clippy::map_entry 2020-11-10 00:36:54 -04:00
Luis Moreno d620f225ee Fix new warnings after rustup update 2020-11-10 00:20:26 -04:00
Luis Moreno c756496b71 Fix clippy::len_without_is_empty 2020-11-09 16:36:43 -04:00
morenol 3d4d5f64f6 feat: add Naive Bayes and CategoricalNB (#15)
* feat: Implement Naive Bayes classifier

* Implement CategoricalNB
2020-11-09 15:54:27 -04:00
Luis Moreno 5e887634db Fix clippy::comparison_chain 2020-11-09 00:02:22 -04:00
Luis Moreno 3c1969bdf5 Fix clippy::needless_lifetimes 2020-11-08 23:59:28 -04:00
Luis Moreno 0c35adf76a Fix clippy::let_and_return 2020-11-08 23:26:22 -04:00
Luis Moreno dd2864abe7 Fix clippy::extra_unused_lifetimes 2020-11-08 23:24:53 -04:00
Luis Moreno b780e0c289 Fix clippy::unnecessary_mut_passed 2020-11-08 23:22:18 -04:00
Luis Moreno 513d916580 Fix clippy::tabs_in_doc_comments 2020-11-08 23:20:22 -04:00
Luis Moreno 43584e14e5 Fix clippy::or_fun_call 2020-11-08 23:18:29 -04:00
Luis Moreno 4d75af6703 Allow temporally the warnings that are currently failing 2020-11-08 20:59:27 -04:00
Luis Moreno 8a2da00665 Fail in case of clippy warning 2020-11-08 20:58:47 -04:00
Luis Moreno 54886ebd72 Fix rust-2018-idioms warnings 2020-11-08 20:24:08 -04:00
Luis Moreno ea5de9758a Add -Drust-2018-idioms to clippy 2020-11-08 19:46:37 -04:00
Luis Moreno 860056c3ba Run: cargo clippy --fix -Z unstable-options and cargo fmt 2020-11-08 19:39:11 -04:00
Luis Moreno 8281a1620e Fix clippy errors 2020-11-06 23:17:33 -04:00
Luis Moreno ba03ef4678 Add clippy CI job 2020-11-06 23:17:22 -04:00
Volodymyr Orlov 83048dbe94 fix: small doc changes 2020-11-06 11:20:43 -08:00
Volodymyr Orlov ab7f46603c feat: + ridge regression 2020-11-06 10:48:00 -08:00
VolodymyrOrlov 4efad85f8a Merge pull request #21 from smartcorelib/cholesky
feat: adds Cholesky matrix decomposition
2020-11-05 09:39:01 -08:00
Volodymyr Orlov b8fea67fd2 fix: formatting 2020-11-03 15:49:04 -08:00
Volodymyr Orlov 6473a6c4ae feat: adds Cholesky matrix decomposition 2020-11-03 15:39:43 -08:00
VolodymyrOrlov 7007e06c9c Merge pull request #19 from smartcorelib/svm-documentation
SVM documentation
2020-11-02 19:24:31 -08:00
VolodymyrOrlov 3732ad446c Merge pull request #18 from smartcorelib/svm-kernels
Three more SVM kernels, adds more methods to BaseVector
2020-11-02 19:20:15 -08:00
Volodymyr Orlov a9446c00c2 fix: fixes a bug in Eq implementation for SVC and SVR 2020-10-31 14:43:52 -07:00