Commit Graph
49 Commits
Author SHA1 Message Date
Lorenzo (Mec-iS)andmorenol 265fd558e7 make work cargo build --target wasm32-unknown-unknown 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol e25e2aea2b update CHANGELOG 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 2f6dd1325e update comment 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol b0dece9476 use getrandom/js 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol c507d976be Update CHANGELOG 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol fa54d5ee86 Remove unused tests flags 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 459d558d48 minor fixes to doc 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 1b7dda30a2 minor fix 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol c1bd1df5f6 minor fix 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol cf751f05aa minor fix 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 63ed89aadd minor fix 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 890e9d644c minor fix 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol af0a740394 Fix std_rand feature 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 616e38c282 cleanup 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol a449fdd4ea fmt 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 669f87f812 Use getrandom as default (for no-std feature) 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 6d529b34d2 Add static analyzer to doc 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 3ec9e4f0db Exclude datasets test for wasm/wasi 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 527477dea7 minor fixes 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 5b517c5048 minor fix 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 2df0795be9 Release 0.3 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 0dc97a4e9b Create DEVELOPERS.md 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 6c0fd37222 Update README.md 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol d8d0fb6903 Update README.md 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol ed9769f651 Implement CSV reader with new traits (#209) 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol b427e5d8b1 Improve options conditionals 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol fabe362755 Implement Display for NaiveBayes 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol ee6b6a53d6 cargo clippy 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 19f3a2fcc0 Fix signature of metrics tests 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol e09c4ba724 Add kernels' parameters to public interface 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 6624732a65 Fix svr tests (#222) 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 1cbde3ba22 Refactor modules structure in src/svm 2022-11-08 11:29:56 -05:00
Lorenzo (Mec-iS)andmorenol 551a6e34a5 clean up svm 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol c45bab491a 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-08 11:29:56 -05:00
Lorenzoandmorenol 7f35dc54e4 Disambiguate distances. Implement Fastpair. (#220) 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 712c478af6 Improve features (#215) 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 4d36b7f34f Fix metrics::auc (#212)
* Fix metrics::auc
2022-11-08 11:29:56 -05:00
Lorenzoandmorenol a16927aa16 Port ensemble. Add Display to naive_bayes (#208) 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol d91f4f7ce4 Update README.md 2022-11-08 11:29:56 -05:00
a7fa0585eb 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-11-08 11:29:56 -05:00
Lorenzoandmorenol f605f6e075 Update README.md 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 3b1aaaadf7 Update README.md 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol d015b12402 Update CONTRIBUTING.md 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 9ea3133c27 Update CONTRIBUTING.md 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol e4c47c7540 Add contribution guidelines (#178) 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 0d996edafe Update LICENSE 2022-11-08 11:29:56 -05:00
Lorenzoandmorenol 09d9205696 Add example for FastPair (#144)
* Add example

* Move to top

* Add imports to example

* Fix imports
2022-11-08 11:29:56 -05:00
Lorenzoandmorenol dc7f01db4a Implement fastpair (#142)
* initial fastpair implementation
* FastPair initial implementation
* implement fastpair
* Add random test
* Add bench for fastpair
* Refactor with constructor for FastPair
* Add serialization for PairwiseDistance
* Add fp_bench feature for fastpair bench
2022-11-08 11:29:56 -05:00
LorenzoandGitHub 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