Konstantin Hirschfeld
f53cb36b9d
allow for sparse predictions
CI / tests (map[os:macos target:aarch64-apple-darwin]) (push) Has been cancelled
CI / tests (map[os:ubuntu target:i686-unknown-linux-gnu]) (push) Has been cancelled
CI / tests (map[os:ubuntu target:wasm32-unknown-unknown]) (push) Has been cancelled
CI / tests (map[os:ubuntu target:x86_64-unknown-linux-gnu]) (push) Has been cancelled
CI / tests (map[os:windows target:i686-pc-windows-msvc]) (push) Has been cancelled
CI / tests (map[os:windows target:x86_64-pc-windows-msvc]) (push) Has been cancelled
CI / check_features (, map[os:ubuntu]) (push) Has been cancelled
CI / check_features (--features datasets, map[os:ubuntu]) (push) Has been cancelled
CI / check_features (--features serde, map[os:ubuntu]) (push) Has been cancelled
Coverage / coverage (push) Has been cancelled
Lint checks / lint (push) Has been cancelled
2026-02-09 13:25:50 +01:00
Georeth Chow
78f18505b1
fix LASSO ( #346 )
...
* fix lasso doc typo
* fix lasso optimizer bug
2025-12-05 17:49:07 +09:00
Georeth Chow
18de2aa244
add fit_intercept to LASSO ( #344 )
...
* add fit_intercept to LASSO
* lasso: intercept=None if fit_intercept is false
* update CHANGELOG.md to reflect lasso changes
* lasso: minor
2025-11-29 02:46:14 +00:00
Georeth Chow
2bf5f7a1a5
Fix LASSO (first two of #342 ) ( #343 )
...
* Fix LASSO (#342 )
* change loss function in doc to match code
* allow `n == p` case
* lasso add test_full_rank_x
---------
Co-authored-by: Zhou Xiaozhou <zxz@jiweifund.com >
2025-11-28 12:15:43 +09:00
Charlie Martin
70d8a0f34b
fix precision and recall calculations ( #338 )
...
* fix precision and recall calculations
2025-11-24 01:46:56 +00:00
Charlie Martin
0e42a97514
add serde support for XGRegressor ( #337 )
...
* add serde support for XGBoostRegressor
* add traits to dependent structs
2025-11-16 19:31:21 +09:00
Lorenzo
36efd582a5
Fix is_empty method logic in matrix.rs ( #336 )
...
* Fix is_empty method logic in matrix.rs
* bump to 0.4.6
* silence some clippy
2025-11-15 05:22:42 +00:00
Lorenzo
63f86f7bc9
Add with_top_k to CosineSimilarity ( #332 )
...
* Implement cosine similarity and cosinepair
* formatting
* fix clippy
* Add top k CosinePair
* fix distance computation
* set min similarity for constant zeros
* bump version to 0.4.5
2025-10-09 17:27:54 +01:00
Lorenzo
e633afa520
set min similarity for constant zeros ( #331 )
...
* set min similarity for constant zeros
* bump version
2025-10-02 15:41:18 +01:00
Lorenzo
09be4681cf
Implement cosine similarity and cosinepair ( #327 )
...
* Implement cosine similarity and cosinepair
2025-09-27 11:08:57 +01:00
Daniel Lacina
4841791b7e
implemented extra trees ( #320 )
...
* implemented extra trees
* implemented extra trees
2025-07-12 18:37:11 +01:00
Daniel Lacina
9fef05ecc6
refactored random forest regressor into reusable compoennts ( #318 )
2025-07-12 15:56:49 +01:00
Daniel Lacina
c5816b0e1b
refactored decision tree into reusable components ( #316 )
...
* refactored decision tree into reusable components
* got rid of api code from base tree because its an implementation detail
* got rid of api code from base tree because its an implementation detail
* changed name
2025-07-12 11:25:53 +01:00
Daniel Lacina
5cc5528367
implemented xgdboost_regression ( #314 )
...
* implemented xgd_regression
2025-07-09 15:25:45 +01:00
Daniel Lacina
d459c48372
implemented single linkage clustering ( #313 )
...
* implemented single linkage clustering
---------
Co-authored-by: Lorenzo Mec-iS <tunedconsulting@gmail.com >
2025-07-03 18:05:54 +01:00
Daniel Lacina
730c0d64df
implemented multiclass for svc ( #308 )
...
* implemented multiclass for svc
* modified the multiclass svc so it doesnt modify the current api
2025-06-16 11:00:11 +01:00
Lorenzo
44424807a0
Implement SVR and SVR kernels with Enum. Add tests for argsort_mut ( #303 )
...
* Add tests for argsort_mut
* Add formatting and cleaning up .github directory
* fix clippy error. suggestion to use .contains()
* define type explicitly for variable jstack
* Implement kernel as enumerator
* basic svr and svr_params implementation
* Complete enum implementation for Kernels. Implement search grid for SVR. Add documentation.
* Fix serde configuration in cargo clippy
* Implement search parameters (#304 )
* Implement SVR kernels as enumerator
* basic svr and svr_params implementation
* Implement search grid for SVR. Add documentation.
* Fix serde configuration in cargo clippy
* Fix wasm32 typetag
* fix typetag
* Bump to version 0.4.2
2025-06-02 11:01:46 +01:00
morenol
76d1ef610d
Update Cargo.toml ( #299 )
...
* Update Cargo.toml
* chore: fix clippy
* chore: bump actions
* chore: fix clippy
* chore: update target name
---------
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com >
2025-04-24 23:24:29 -04:00
Lorenzo
17dc9f3bbf
Add ordered pairs for FastPair ( #252 )
...
* Add ordered_pairs method to FastPair
* add tests to fastpair
2025-01-28 00:48:08 +00:00
Lorenzo
c8ec8fec00
Fix #245 : return error for NaN in naive bayes ( #246 )
...
* Fix #245 : return error for NaN in naive bayes
* Implement error handling for NaN values in NBayes predict:
* general behaviour has been kept unchanged according to original tests in `mod.rs`
* aka: error is returned only if all the predicted probabilities are NaN
* Add tests
* Add test with static values
* Add test for numerical stability with numpy
2025-01-27 23:17:55 +00:00
Lorenzo
3da433f757
Implement predict_proba for DecisionTreeClassifier ( #287 )
...
* Implement predict_proba for DecisionTreeClassifier
* Some automated fixes suggested by cargo clippy --fix
2025-01-20 18:50:00 +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
80a93c1a0e
chore: fix clippy ( #276 )
...
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com >
2024-02-25 00:17:30 -05:00
Tushushu
4eadd16ce4
Implement the feature importance for Decision Tree Classifier ( #275 )
...
* store impurity in the node
* add number of features
* add a TODO
* draft feature importance
* feat
* n_samples of node
* compute_feature_importances
* unit tests
* always calculate impurity
* fix bug
* fix linter
2024-02-24 23:37:30 -05:00
Frédéric Meyer
886b5631b7
In Naive Bayes, avoid using Option::unwrap and so avoid panicking from NaN values ( #274 )
2024-01-10 14:59:10 -04: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
Ruben De Smet
545ed6ce2b
Remove some allocations ( #262 )
...
* Remove some allocations
* Remove some more allocations
2023-04-26 21:46:26 +08:00
morenol
8939ed93b9
chore: fix clippy warnings from Rust release 1.69 ( #263 )
...
* chore: fix clippy warnings from Rust release 1.69
* chore: run `cargo fmt`
* refactor: remove unused type parameter
---------
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com >
2023-04-26 01:35:58 +09:00
Hsiang-Cheng Yang
d52830a818
Update arrays.rs ( #253 )
...
fix a typo
2023-03-23 19:15:54 -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
morenol
8efb959b3c
Handle kernel serialization ( #232 )
...
* Handle kernel serialization
* Do not use typetag in WASM
* enable tests for serialization
* Update serde feature deps
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com >
Co-authored-by: Lorenzo <tunedconsulting@gmail.com >
2022-11-08 16:18:05 +00:00
morenol
9eaae9ef35
Fixes for release ( #237 )
...
* Fixes for release
* add new test
* Remove change applied in development branch
* Only add dependency for wasm32
* Update ci.yml
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com >
Co-authored-by: Lorenzo <tunedconsulting@gmail.com >
2022-11-08 16:07:14 +00:00
Lorenzo
161d249917
Release 0.3 ( #235 )
2022-11-08 15:22:34 +00:00
morenol
425c3c1d0b
Use Box in SVM and remove lifetimes ( #228 )
...
* Do not change external API
Authored-by: Luis Moreno <morenol@users.noreply.github.com >
2022-11-04 22:08:30 +00:00
morenol
35fe68e024
Fix CI ( #227 )
...
* Update ci.yml
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com >
2022-11-03 13:48:16 -05:00
Lorenzo
d592b628be
Implement CSV reader with new traits ( #209 )
2022-11-03 15:49:00 +00:00
Lorenzo (Mec-iS)
b66afa9222
Improve options conditionals
2022-11-03 14:58:05 +00:00
Lorenzo (Mec-iS)
ba70bb941f
Implement Display for NaiveBayes
2022-11-03 14:18:56 +00:00
Lorenzo (Mec-iS)
d298709040
cargo clippy
2022-11-03 13:44:27 +00:00
Lorenzo (Mec-iS)
e50b4e8637
Fix signature of metrics tests
2022-11-03 13:40:54 +00:00
Lorenzo (Mec-iS)
26b72b67f4
Add kernels' parameters to public interface
2022-11-03 12:30:43 +00:00
Lorenzo
1964424589
Fix svr tests ( #222 )
2022-11-03 11:48:40 +00:00
Lorenzo (Mec-iS)
deac31a2ab
Refactor modules structure in src/svm
2022-11-02 15:28:50 +00:00
Lorenzo (Mec-iS)
4cff7da50d
Merge branch 'development' of github.com:smartcorelib/smartcore into development
2022-11-02 15:24:06 +00:00
Lorenzo (Mec-iS)
df0ae907f7
clean up svm
2022-11-02 15:23:56 +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
b60329ca5d
Disambiguate distances. Implement Fastpair. ( #220 )
2022-11-02 14:53:28 +00:00
morenol
4b096ad558
build: fix compilation without default features ( #218 )
...
* build: fix compilation with optional features
* Remove unused config from Cargo.toml
* Fix cache keys
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com >
2022-11-02 10:09:03 +00:00