Skip to content

Add ensemble learning to package#74

Open
NickT42 wants to merge 3 commits into
mainfrom
feature/ensembles
Open

Add ensemble learning to package#74
NickT42 wants to merge 3 commits into
mainfrom
feature/ensembles

Conversation

@NickT42

@NickT42 NickT42 commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

This PR is meant to add support for the build_ensemble function, which has been moved from the pull request in 'ModalDecisionLists.jl' to here as it's more fitting to the 'SoleModels.jl' package.
The other changes include

  1. The addition of missing functions such as atoms() were added to support alphabet() for DecisionLists
  2. The addition of a custom apply() function for DecisionEnsembles to (optionally) handle different submodels accessing only certain subsets of the features in the data.

Note that the slicing in the new apply function currently risks causing issues if the tabulardataset in the propositional logiset on which the ensemble is to be applied does not support all '__getindex()' features, but that is a problem to be solved by having stricter prerequisites for the table in 'PropositionalLogiset'.

NickkTr added 2 commits April 11, 2026 18:25
The function 'build_ensemble' was added, which provides Random-Forest-Like training of a series of submodels. In addition, missing alphabet() - related functions such as atoms() and connectives() were added for the 'DecisionList' type
@codecov

codecov Bot commented Apr 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 22.64151% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.62%. Comparing base (c1b3f36) to head (0a7539c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/utils/models/ensemble_learning.jl 0.00% 32 Missing ⚠️
src/utils/models/syntax-utilities.jl 0.00% 6 Missing ⚠️
src/utils/models/ensembles.jl 80.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
- Coverage   56.37%   54.62%   -1.76%     
==========================================
  Files          20       21       +1     
  Lines        1254     1307      +53     
==========================================
+ Hits          707      714       +7     
- Misses        547      593      +46     

☔ 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.

@alberto-paparella alberto-paparella added the enhancement New feature or request label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants