Improve boids 4.0#523
Draft
PLAZMAMA wants to merge 63 commits intoPufferAI:4.0from
Draft
Conversation
e046861 to
f8d99f3
Compare
Normalized the separation, alignment, and cohesion rule contributions to unit vectors scaled by their factors, and fixed the global velocity clip in boids.h to use the actual magnitude of normal_v and only rescale when it exceeds VELOCITY_CAP (true Option B), replacing the previous per-axis flclip and a broken clip that was dividing by leftover rule_dx/rule_dy values.
Action offset changed from 2.0f to 1.0f. Reward normalization changed from division by 5.0f to 50.0f. Added floats to Raylib rect/vector params. Updated default boid config to isolate cohesion.
27e6e6f to
0b4d618
Compare
Track margin_turn, cohesion, separation, and alignment reward contributions separately so each factor's effect is visible in dashboards/wandb.
reward vars were added to be used by logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this PR is the improvements of the boids env made by this PR #246 migrated to 4.0.