cli: add 'grl-snam coef-train' (deployable-nav trainer as a first-class command) - #102
Merged
Merged
Conversation
…t-class command coef_train (the CoefMLP trainer that exports the versioned .cvcnav a pure-C++ host loads via coef_mlp::load — the DEPLOYABLE nav policy, incl. grip/risk+learned-lam via --rollout bicycle) was only reachable as 'python -m grl_snam.tools.coef_train'. Wire it into the grl-snam Click CLI as 'grl-snam coef-train', a thin passthrough to the tool's argparse (single source of truth for its ~18 flags; -h/--help pass through). Distinct from 'grl-snam train' (SDF self-supervised -> .pt). Verified: lists in --help, --help passes through, and a 2-step run trains + writes a 6-in/4-out .cvcnav.
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.
coef_train— the trainer that exports the versioned.cvcnava pure-C++ host loads viacoef_mlp::load(the deployable nav policy, including grip/risk + learned-lam via--rollout bicycle --w-risk --learned-lam) — was only reachable aspython -m grl_snam.tools.coef_train. This makes it a first-class command of the installed CLI:grl-snam coef-train.Implementation: a thin passthrough (
nargs=-1, Click-h/--helpdisabled so they reach argparse) togrl_snam.tools.coef_train:main(argv)— the tool's argparse stays the single source of truth for its ~18 flags (no option-mirror drift). Distinct from the existinggrl-snam train(self-supervised SDF →.pt).Verified:
grl-snam --helplistscoef-train.grl-snam coef-train --helpprints the full flag list (--rollout/--steps/--w-risk/--lam-soft/--learned-lam/--curriculum/--cuda/...).grl-snam coef-train --rollout bicycle --w-risk 0.5 --learned-lam --lam-soft 0.4 --steps 2 --out x.cvcnavtrains + writes a 6-in/4-out.cvcnav.