Commit Graph

48 Commits

Author SHA1 Message Date
Lorenzo Mec-iS
58ee0cb8d1 Some automated fixes suggested by cargo clippy --fix 2025-01-20 15:04:21 +00:00
morenol
ba75f9ffad chore: fix clippy (#283)
* chore: fix clippy


Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
2024-11-25 11:34:29 -04:00
Lorenzo
239c00428f Patch to version 0.4.0 (#257)
* uncomment test

* Add random test for logistic regression

* linting

* Bump version

* Add test for logistic regression

* linting

* initial commit

* final

* final-clean

* Bump to 0.4.0

* Fix linter

* cleanup

* Update CHANDELOG with breaking changes

* Update CHANDELOG date

* Add functional methods to DenseMatrix implementation

* linting

* add type declaration in test

* Fix Wasm tests failing

* linting

* fix tests

* linting

* Add type annotations on BBDTree constructor

* fix clippy

* fix clippy

* fix tests

* bump version

* run fmt. fix changelog

---------

Co-authored-by: Edmund Cape <edmund@Edmunds-MacBook-Pro.local>
2024-03-04 08:51:27 -05:00
morenol
6f22bbd150 chore: update clippy lints (#272)
* chore: fix clippy lints
---------

Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
2023-11-20 21:54:09 -04:00
Lorenzo
f498f9629e Implement realnum::rand (#251)
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
Co-authored-by: Lorenzo <tunedconsulting@gmail.com>

* Implement rand. Use the new derive [#default]
* Use custom range
* Use range seed
* Bump version
* Add array length checks for
2023-03-20 14:45:44 +00:00
morenol
c7353d0b57 Run cargo clippy --fix (#250)
* Run `cargo clippy --fix`
* Run `cargo clippy --all-features --fix`
* Fix other clippy warnings
* cargo fmt

Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
2023-01-27 10:41:18 +00:00
Lorenzo
161d249917 Release 0.3 (#235) 2022-11-08 15:22:34 +00:00
Lorenzo (Mec-iS)
b66afa9222 Improve options conditionals 2022-11-03 14:58:05 +00:00
Lorenzo
cfbd45bfc0 Support Wasi as target (#216)
* Improve features
* Add wasm32-wasi as a target
* Update .github/workflows/ci.yml
Co-authored-by: morenol <22335041+morenol@users.noreply.github.com>
2022-11-02 15:22:38 +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
Montana Low
764309e313 make default params available to serde (#167)
* add seed param to search params

* make default params available to serde

* lints

* create defaults for enums

* lint
2022-09-21 22:48:31 -04:00
Montana Low
4685fc73e0 grid search (#154)
* grid search draft
* hyperparam search for linear estimators
2022-09-19 10:31:56 +01:00
morenol
820201e920 Solve conflic with num-traits (#130)
* Solve conflic with num-traits

* Fix clippy warnings

Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
2022-05-05 10:39:18 -04: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
Volodymyr Orlov
40a92ee4db feat: adds l2 regularization penalty to the Logistic Regression 2021-01-21 14:37:34 -08:00
Volodymyr Orlov
bd5fbb63b1 feat: adds a new parameter to the logistic regression: solver 2021-01-20 16:55:58 -08:00
Ben Cross
f1cf8a6f08 Added serde feature flags to tests 2021-01-18 10:32:35 +00:00
Ben Cross
762986b271 Cargo format 2021-01-17 21:37:30 +00:00
Ben Cross
e0d46f430b feat: Make SerDe optional 2021-01-17 21:35:03 +00:00
Volodymyr Orlov
810a5c429b feat: consolidates API 2020-12-24 18:36:23 -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
Volodymyr Orlov
583284e66f feat: adds LASSO 2020-11-24 19:12:53 -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
Luis Moreno
d620f225ee Fix new warnings after rustup update 2020-11-10 00:20:26 -04:00
Luis Moreno
5e887634db Fix clippy::comparison_chain 2020-11-09 00:02:22 -04:00
Luis Moreno
860056c3ba Run: cargo clippy --fix -Z unstable-options and cargo fmt 2020-11-08 19:39:11 -04:00
Volodymyr Orlov
a9db970195 feat: refactoring, adds Result to most public API 2020-09-18 15:20:32 -07:00
Volodymyr Orlov
bbe810d164 feat: documents matrix methods 2020-09-06 18:27:11 -07:00
Volodymyr Orlov
ecfbaac167 feat: documents ensemble models 2020-09-04 10:04:22 -07:00
Volodymyr Orlov
2c6a03ddc1 feat: documents tree 2020-09-03 17:49:58 -07:00
Volodymyr Orlov
32081852ad feat: documents linear models 2020-09-02 15:35:16 -07:00
Volodymyr Orlov
f7c229f167 fix: formatting 2020-08-29 20:20:36 -07:00
Volodymyr Orlov
fa0918cee3 fix: renames FloatExt to RealNumber 2020-08-29 20:17:01 -07:00
Volodymyr Orlov
68dca25f91 feat: puts ndarray and nalgebra bindings behind feature flags 2020-08-28 16:55:41 -07:00
Volodymyr Orlov
ee581abf70 fix: formatting 2020-06-05 18:13:28 -07:00
Volodymyr Orlov
3982ae8f10 fix: broken tests 2020-06-05 18:10:23 -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
b068295dac feat: integrates with nalgebra 2020-04-06 19:16:37 -07:00
Volodymyr Orlov
eb0c36223f feat: adds serialization/deserialization methods 2020-04-03 11:12:15 -07:00
Volodymyr Orlov
8bb6013430 feat: serialization/deserialization with Serde 2020-03-31 18:19:20 -07:00
Volodymyr Orlov
02b85415d9 feat: extends interface of Matrix to support for broad range of types 2020-03-26 15:28:26 -07:00
Volodymyr Orlov
87b6fab795 feat: refactors packages layout 2020-03-13 14:30:45 -07:00