Commit Graph

55 Commits

Author SHA1 Message Date
Lorenzo (Mec-iS)
cc91e31a0e minor fixes 2022-11-07 13:00:51 +00:00
Lorenzo (Mec-iS)
0ec89402e8 minor fix 2022-11-07 12:50:32 +00:00
Lorenzo (Mec-iS)
23b3699730 Release 0.3 2022-11-07 12:48:44 +00:00
Lorenzo
d592b628be Implement CSV reader with new traits (#209) 2022-11-03 15:49:00 +00:00
Lorenzo
b60329ca5d Disambiguate distances. Implement Fastpair. (#220) 2022-11-02 14:53:28 +00:00
Lorenzo
083803c900 Port ensemble. Add Display to naive_bayes (#208) 2022-10-31 17:35:33 +00:00
Lorenzo
52eb6ce023 Merge potential next release v0.4 (#187) Breaking Changes
* First draft of the new n-dimensional arrays + NB use case
* Improves default implementation of multiple Array methods
* Refactors tree methods
* Adds matrix decomposition routines
* Adds matrix decomposition methods to ndarray and nalgebra bindings
* Refactoring + linear regression now uses array2
* Ridge & Linear regression
* LBFGS optimizer & logistic regression
* LBFGS optimizer & logistic regression
* Changes linear methods, metrics and model selection methods to new n-dimensional arrays
* Switches KNN and clustering algorithms to new n-d array layer
* Refactors distance metrics
* Optimizes knn and clustering methods
* Refactors metrics module
* Switches decomposition methods to n-dimensional arrays
* Linalg refactoring - cleanup rng merge (#172)
* Remove legacy DenseMatrix and BaseMatrix implementation. Port the new Number, FloatNumber and Array implementation into module structure.
* Exclude AUC metrics. Needs reimplementation
* Improve developers walkthrough

New traits system in place at `src/numbers` and `src/linalg`
Co-authored-by: Lorenzo <tunedconsulting@gmail.com>

* Provide SupervisedEstimator with a constructor to avoid explicit dynamical box allocation in 'cross_validate' and 'cross_validate_predict' as required by the use of 'dyn' as per Rust 2021
* Implement getters to use as_ref() in src/neighbors
* Implement getters to use as_ref() in src/naive_bayes
* Implement getters to use as_ref() in src/linear
* Add Clone to src/naive_bayes
* Change signature for cross_validate and other model_selection functions to abide to use of dyn in Rust 2021
* Implement ndarray-bindings. Remove FloatNumber from implementations
* Drop nalgebra-bindings support (as decided in conf-call to go for ndarray)
* Remove benches. Benches will have their own repo at smartcore-benches
* Implement SVC
* Implement SVC serialization. Move search parameters in dedicated module
* Implement SVR. Definitely too slow
* Fix compilation issues for wasm (#202)

Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
* Fix tests (#203)

* Port linalg/traits/stats.rs
* Improve methods naming
* Improve Display for DenseMatrix

Co-authored-by: Montana Low <montanalow@users.noreply.github.com>
Co-authored-by: VolodymyrOrlov <volodymyr.orlov@gmail.com>
2022-10-31 10:44:57 +00:00
morenol
3a44161406 Lmm/add seeds in more algorithms (#164)
* Provide better output in flaky tests

* feat: add seed parameter to multiple algorithms

* Update changelog

Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
2022-09-21 20:35:22 +01:00
Tim Toebrock
b6f585e60f Implement a generic read_csv method (#147)
* feat: Add interface to build `Matrix` from rows.
* feat: Add option to derive `RealNumber` from string.
To construct a `Matrix` from csv, and therefore from string, I need to be able to deserialize a generic `RealNumber` from string.
* feat: Implement `Matrix::read_csv`.
2022-09-19 10:38:01 +01:00
Luis Moreno
4397c91570 Fix clippy warnings 2021-10-20 14:15:41 -05:00
Luis Moreno
d9814c0918 style(lint): fix clippy warnings 2021-04-27 09:32:01 -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
gaxler
dbca6d43ce fmt fix 2021-01-25 23:55:43 -08:00
gaxler
991631876e build one-hot encoder 2021-01-25 23:33:48 -08:00
Alex
0e8166386c Fix Matrix typo in documentation 2021-01-05 16:57:14 +00: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
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
morenol
b86c553bb1 Merge pull request #24 from morenol/lmm/clippy_ci
Add clippy CI job
2020-11-11 17:11:52 -04:00
Luis Moreno
f46d3ba94c Address feedback 2020-11-10 21:24:08 -04:00
Luis Moreno
18df9c758c Fix clippy::map_entry 2020-11-10 00:36:54 -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
Volodymyr Orlov
20e58a8817 feat: adds e-SVR 2020-10-15 16:23:26 -07:00
Volodymyr Orlov
0803532e79 fix: minor change in documentation 2020-09-20 16:40:25 -07:00
Volodymyr Orlov
a9db970195 feat: refactoring, adds Result to most public API 2020-09-18 15:20:32 -07:00
Volodymyr Orlov
4921ae76f5 fix: formatting 2020-09-17 18:52:50 -07:00
Volodymyr Orlov
9b7a2df0ce feat: adds FitFailedError and PredictFailedError 2020-09-17 18:49:56 -07:00
Volodymyr Orlov
d28f13d849 feat: adds train/test split function; fixes bug in random forest 2020-09-13 16:23:30 -07:00
Volodymyr Orlov
b95e11cc98 feat: adds dataset module, fixs problem in CoverTree implementation 2020-09-10 12:21:59 -07:00
Volodymyr Orlov
bbe810d164 feat: documents matrix methods 2020-09-06 18:27:11 -07:00
Volodymyr Orlov
fa0918cee3 fix: renames FloatExt to RealNumber 2020-08-29 20:17:01 -07:00
Volodymyr Orlov
dcf636a5f1 feat: documents KNN Classifier 2020-08-27 19:47:11 -07:00
Volodymyr Orlov
e5b412451f feat: adds KNN Regressor 2020-08-27 14:17:18 -07:00
Volodymyr Orlov
f73b349f57 fix: formatting 2020-08-27 11:40:11 -07:00
Volodymyr Orlov
aa458d22fa fix: code cleanup, documentation 2020-08-27 11:37:14 -07:00
Volodymyr Orlov
a2784d6345 fix: cargo fmt 2020-06-05 17:52:03 -07:00
Volodymyr Orlov
c0c2029f2c feat: adds accuracy, recall and precision metrics 2020-06-05 17:39:29 -07:00
Volodymyr Orlov
87b6fab795 feat: refactors packages layout 2020-03-13 14:30:45 -07:00
Volodymyr Orlov
4f8318e933 fix: more refactoring 2020-03-13 11:24:53 -07:00
Volodymyr Orlov
7b3fa982be feat: adds PCA 2020-03-06 09:13:54 -08:00