Fix SpeciatedFitnessEliminator observer to receive pre-division fitness values#152
Conversation
…tness values Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
HyperCodec
left a comment
There was a problem hiding this comment.
Probably split this up into helper functions (or replace calculate_and_sort) for cleanliness. Also cargo fmt check is failing in the CI, so make sure your code is formatted nicely.
Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
Done in 4be3589. Extracted a private |
HyperCodec
left a comment
There was a problem hiding this comment.
you removed rayon feature support, which means it's going to be horribly slow. the fitness functions must be run in parallel whenever the rayon feature is enabled, as these fitness functions often make up the majority of CPU time.
Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
Fixed in 8909fc2. |
SpeciatedFitnessEliminatorto pass pre-division fitness values to the observercalculate_fitnesseshelper with#[cfg]-gated rayon/non-rayon variantspar_iter()cargo fmtformatting issuesobserver_receives_pre_division_fitnessverifying the observer sees raw values (1.0 and 0.5) and does NOT see the divided value (0.25)rayonfeatureOriginal prompt
FitnessObserveronSpeciatedFitnessEliminatorshould be passed pre-division values. #151💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.