test: CLI-train + export + reload the deployable risk/lam coef_mlp - #104
Merged
Merged
Conversation
…cvcnav) Integration test for the coef-train --rollout bicycle --w-risk --learned-lam deployable path (the grl-snam side of libcvc's NavCoefTrain.TrainThenSaveReloadIntegration): CLI-train a lam net to a .cvcnav, assert the SHIPPED 6-in risk-only + 4-out lam layout survives export (CVNV, risk flag set, mu flag clear), then reload it torch-free via nav_native.coef_mlp_forward and confirm it forwards to (N,4) with a finite, softplus->=0 learned-lam column. The load+DRIVE contract is pinned in libcvc (NavMaterialDeploy.ShippedRiskOnlyLamNetRoundTripsAndDrives); this closes the gap that the CLI lam path had no train->export->reload test. Verified: passes in 6s (torch train + torch-free reload).
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.
The
coef-train --rollout bicycle --w-risk --learned-lamdeployable path (produces the risk/lam.cvcnavdemo3 loads) had no integration test that trains → exports → reloads it — only header-only export checks and torch-Swarm scoring. This adds the grl-snam side of libcvc'sNavCoefTrain.TrainThenSaveReloadIntegration:.cvcnav.CVNV,FLAG_FEAT_RISKset,FLAG_FEAT_MUclear) — the exact contract the shippedcoef_mlp_riskaware.cvcnavrelies on.nav_native.coef_mlp_forwardand confirm the trained net forwards to(N,4)with a finite, softplus-≥0 learned-lam column.The load+drive contract (a reloaded risk/lam net drives via
drive_step_material) is pinned on the C++ side in libcvc#432; this closes the CLI-path train→export→reload gap. Passes in ~6s (torch train + torch-free reload).