Skip to content

Update 1.4.1 (hotfix)#153

Merged
HyperCodec merged 8 commits intomainfrom
dev
Mar 11, 2026
Merged

Update 1.4.1 (hotfix)#153
HyperCodec merged 8 commits intomainfrom
dev

Conversation

@HyperCodec
Copy link
Owner

Fixes FitnessObservers not being passed the actual fitness, but rather the adjusted fitness for species balancing.

Copilot AI and others added 6 commits March 11, 2026 12:58
…tness values

Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
…values

Fix SpeciatedFitnessEliminator observer to receive pre-division fitness values
@HyperCodec HyperCodec self-assigned this Mar 11, 2026
@HyperCodec HyperCodec added bug Something isn't working enhancement New feature or request labels Mar 11, 2026
@HyperCodec HyperCodec marked this pull request as ready for review March 11, 2026 16:11
Copilot AI review requested due to automatic review settings March 11, 2026 16:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes SpeciatedFitnessEliminator so FitnessObservers are notified with raw fitness values (pre species-size division), while elimination logic continues to use the species-balanced (divided/multiplied) fitness values. This aligns observer reporting with the true fitness function output and updates the version as a hotfix.

Changes:

  • Split fitness computation into raw vs species-adjusted values and ensure observers receive the raw values.
  • Add an integration test asserting the observer sees pre-division fitness values.
  • Bump workspace/crate versions to 1.4.1 and update an example comment accordingly.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
genetic-rs-common/src/builtin/eliminator.rs Computes raw+divided fitness separately; observer now receives raw fitness while selection uses divided fitness.
genetic-rs/tests/speciation.rs Adds regression test ensuring observers see raw (pre-division) fitness values.
genetic-rs/examples/speciation.rs Removes outdated note implying observer values are species-adjusted.
Cargo.toml Bumps workspace version and workspace dependency versions to 1.4.1.
Cargo.lock Updates lockfile versions to 1.4.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HyperCodec HyperCodec merged commit 6cffc30 into main Mar 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants