Add a sub-45 BC student controller#40
Closed
teerthsharma wants to merge 4 commits into
Closed
Conversation
Integrated AETHER-Link telemetry feature extraction to solve the over-correction problem. Traditional PID controllers oscillate under high variance (high jerk). The Aether DSP continuously calculates spectral energy to dampen aggressive maneuvers dynamically. Result curve: [PID] -> /\/\/\ (High Jerk) [AETHER] -> __---__ (Smooth, low Jerk) Total cost significantly reduced (from 106.8 to 84.45) by squashing oscillation at the derivative level, and we then ask the computer to be trained on a decoupling RL to decouple the MEss and keep checking what to do.
Author
|
Superseded by #41 from the renamed Banach branch. |
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.
What changed
This PR adds
bc_student, a compact behavioral-cloning controller backed by a Torch MLP and a small saved checkpoint.The short version: the earlier PID/topology experiments got close enough to be educational, but not close enough for the leaderboard cutoff. I switched to the idea that has clearly been winning this challenge: optimize good actions offline, then distill that behavior into a fast student policy. The resulting controller keeps the runtime simple: build the same state/future/past-action feature vector every step, run one CPU Torch forward pass, and clip the steering command into the simulator range.
Score
Full 5,000 segment local evaluation:
That is below the strict
<45target and below the<50range requested for leaderboard consideration.Why this feels worth submitting
I did not want to send another clever-looking controller that only wins a small smoke test. This one got the full 5k pass before opening the PR. It is more direct, less hand-tuned, and much closer to the current leaderboard style: let offline trajectory optimization teach a policy, then submit the policy as the controller.
Validation
The committed test covers model loading, finite/clipped actions, short future-plan padding, and model-cache reuse.
Notes
The controller depends on
torch>=2.0for inference. The checkpoint is intentionally included so the controller is self-contained for evaluation.