Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Add
train_lan_for_modelandlan-from-ssms: a bounded ssms simulation/KDE ->PyTorch -> single-trial ONNX recipe with explicit HSSM config output and five
validation gates. A model can be built-in, runtime-registered, or an explicit
ssms config. Conditional experiments record fixed parameters as fixed HSSM priors.
The recipe uses the existing trainer and exporter, keeps train/validation
parameter draws separate, handles batch divisibility, normalizes runtime bounds
on a copy, and writes hashes/configs/seeds/version/provenance metadata. It injects
a local guard for ssms #392/#432 and sampled horizon problems (#404); it does not
patch ssms globally. The existing pandas 3 fix is reused.
G1 checks ONNX structure, G2 trainer/export parity, G3 finite HSSM initial logp,
G4 independent simulated density and normalization, G5 both autodiff correctness
and fresh simulated-density sensitivity with paired seeds. Any failed, skipped,
missing or disabled gate blocks
model_config.jsonand leavesartifact.hssm_model_config=None. Production requires explicit opt-in, and norun is labeled production-validated. See the new guide for presets and explicit
development thresholds.
Validation in an isolated Python 3.12 environment with ssms 0.16.0, pandas 3.1.1
and pinned HSSM source
1f94ce2b:pytest tests/test_ssms_recipe.py tests/test_recipe_gradient.py -q -o addopts= --cov=src/lanfactory/recipes --cov-branch:60 passed in 13.17s(warnings omitted), 96.63% line/branch coverage acrossthe recipe modules; guards and validation each have 100% line/branch coverage.
angle model. It fails statistical gates and emits no certificate despite
valid export/logp. Gaussian controls distinguish autodiff from density fidelity.
and certificate boundaries have regressions. No gate threshold was relaxed.
69 passed in 11.35s. Final full Python3.12–3.14 matrices all pass at
634df09(11m02s, 10m30s and 13m14s).with coverage: PASS. Codecov patch coverage: 95.66% against a 91.31% target,
PASS. Docs/lint/notebook CI all pass. Final test workflow.
conditional recovery (400 trials, zero divergences, both truths covered;
138.16s total). Evidence and limits.
What seems off
G4/G5 thresholds are smoke checks, not full-box/boundary/tail certification or
ensemble posterior calibration. Toy can fail them and must not be promoted.
a two-chain conditional HSSM recovery (400 trials, zero divergences, both
truths covered; 138.16s total). Evidence and limits.
MTR has a closed-form reference but this recipe used only simulations/KDE.
LAN_pipeline_minimal retains production recovery, aggregation and publishing.
oracle is required for arbitrary simulators; KDE-gradient uncertainty remains
part of the evidence.
outcomes; it cannot prove the entire training box is free of rare censoring.
end-to-end CPN test stalled and was interrupted after 226s. One existing
MLflow test initially lacked that optional dependency; it passed in the
targeted run after MLflow was installed. This is not a claim that the full
LANfactory suite passed locally.
Draft only; no reviewers requested, no publication and no merge.