Skip to content

Add new ensemble methods crate: linfa-ensemble#392

Merged
relf merged 10 commits intorust-ml:masterfrom
relf:linfa-ensemble
May 26, 2025
Merged

Add new ensemble methods crate: linfa-ensemble#392
relf merged 10 commits intorust-ml:masterfrom
relf:linfa-ensemble

Conversation

@relf
Copy link
Copy Markdown
Member

@relf relf commented May 24, 2025

This PR supersedes PR #229 by addressing open review comments.
It adds a new crate for ensemble learning algorithms including a boostrap aggregation algorithm (aka bagging).

Co-authored-by: James Knight jamesknight@hadean.com
Co-authored-by: James Kay james@hadean.com

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2025

Codecov Report

Attention: Patch coverage is 26.66667% with 44 lines in your changes missing coverage. Please review.

Project coverage is 36.11%. Comparing base (335924e) to head (f5e1f6a).

Files with missing lines Patch % Lines
algorithms/linfa-ensemble/src/hyperparams.rs 14.81% 23 Missing ⚠️
algorithms/linfa-ensemble/src/algorithm.rs 36.36% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #392      +/-   ##
==========================================
+ Coverage   36.02%   36.11%   +0.09%     
==========================================
  Files          99      101       +2     
  Lines        6496     6556      +60     
==========================================
+ Hits         2340     2368      +28     
- Misses       4156     4188      +32     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@relf relf marked this pull request as ready for review May 26, 2025 09:04
@relf relf merged commit 20b1dd2 into rust-ml:master May 26, 2025
37 of 41 checks passed
@relf relf deleted the linfa-ensemble branch May 26, 2025 13:50
kakserpom pushed a commit to kakserpom/linfa that referenced this pull request Jun 10, 2025
* Rebase 'ensemble_learner_pr' of github.com:hadeaninc/linfa  (thanks @jk1015) 

* Linting

* Review: replace aggregate_predictions

* Refactor params and algorithm in separate files

* Add documentation

* Test accuracy of random forest and add sklearn doc ref

* Use bagging terminology

* Add ensemble and use lexycographic order in sub-crates list

* Typos

* Adjust test tolerance 

--
Co-authored-by: James Knight jamesknight@hadean.com
Co-authored-by: James Kay james@hadean.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant