Skip to content

fix: correct tournament selection to account for classifier numerosity - #235

Open
rpreen wants to merge 2 commits into
masterfrom
tournament_selection
Open

fix: correct tournament selection to account for classifier numerosity#235
rpreen wants to merge 2 commits into
masterfrom
tournament_selection

Conversation

@rpreen

@rpreen rpreen commented Aug 17, 2026

Copy link
Copy Markdown
Member

Per @PierLucaLanzi, the current implementation of tournament selection differs from the original introduced by Butz, which operates over microclassifiers in the action set: so a macroclassifier's chance of being selected scales with its numerosity.

This PR uses Algorithm 4 from Lanzi (2026) On the Implementation of Tournament Selection in XCS

@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.50%. Comparing base (1d80444) to head (1af0a07).

Files with missing lines Patch % Lines
xcsf/ea.c 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #235      +/-   ##
==========================================
- Coverage   70.55%   70.50%   -0.06%     
==========================================
  Files          61       61              
  Lines        8502     8509       +7     
  Branches      934      934              
==========================================
  Hits         5999     5999              
- Misses       2503     2510       +7     

☔ View full report in Codecov by Harness.
📢 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.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@sonarqubecloud

sonarqubecloud Bot commented Aug 17, 2026

Copy link
Copy Markdown

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