Input normalization strategy #75

Closed
opened 2026-08-25 15:07:15 +02:00 by SirStone · 1 comment
Owner

Question

What normalization strategy for the ANN's 91 inputs (30 ticks × lateral_vel, heading_delta, wall_distance)?

Parent map: #74

## Question What normalization strategy for the ANN's 91 inputs (30 ticks × lateral_vel, heading_delta, wall_distance)? Parent map: https://git.fossellini.top/SirStone/SirRoboGarage/issues/74
SirStone added the wayfinder:grilling label 2026-08-25 15:07:15 +02:00
Author
Owner

Resolution

Per-feature fixed scaling using game constants. Each feature divided by its known max from game physics:

  • lateral_vel / 8.0 → roughly [-1, 1]
  • heading_delta / π → [-1, 1]
  • wall_distance / 1000.0 → [0, 1]

Mixed ranges per feature ([0,1] and [-1,1]) — tanh doesn't need symmetric inputs, just bounded magnitude. Zero runtime cost, no running stats, deterministic. The GA compensates for any imprecision in scaling.

## Resolution **Per-feature fixed scaling using game constants.** Each feature divided by its known max from game physics: - `lateral_vel / 8.0` → roughly [-1, 1] - `heading_delta / π` → [-1, 1] - `wall_distance / 1000.0` → [0, 1] Mixed ranges per feature ([0,1] and [-1,1]) — tanh doesn't need symmetric inputs, just bounded magnitude. Zero runtime cost, no running stats, deterministic. The GA compensates for any imprecision in scaling.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#75