Gradient fits reject an experiment whose only data file is a .prop: 'no routing was supplied'
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Reproduce the failure with repro_function_heavy.py and prop_only.conf, then compare it with lbfgs.conf, which adds an .exp file and succeeds. Trace the ExperimentRouting mentioned in the error for constraint-only experiments, and confirm the behavior with parallel and default worker counts. Done means the constraint-only gradient fit either runs without the late routing error or is rejected during configuration, with the spurious parameter warning addressed if it is in scope.
索引モデルが issue の本文から書いたものです。
説明
Summary
Gradient fits fail for an experiment whose only data file is a BPSL .prop file.
Environment: PyBNF 1.8.1 (5ecb1f69), bngsim 0.15.0, Python 3.12, macOS arm64.
Reproduce
Use the script from #976, then run:
python repro_function_heavy.py repro 300 30
cd repro && pybnf -c prop_only.conf -o
prop_only.conf declares the experiment as experiment: e1, data: calls.prop, t_end: 1, n_steps: 1, with objective = sos, qualitative_scale = fit s, and job_type = lbfgs.
Observed
After about 11–13 s, the run fails:
Error: Gradient-based fitting (job_type = lbfgs) cannot differentiate this fit's objective: Constraint reads observable 'f0' from model 'model' suffix 'e1', but no routing was supplied for it; provide an ExperimentRouting for every (model, suffix) a constraint reads (routings[(model, suffix)]).
-> Use a metaheuristic job_type instead (e.g. job_type = de, the default, or pso / ss / cmaes), which needs no gradient.
This happens with parallel_count = 2 and with the default worker count, at verbosity = 1 and verbosity = 2.
Workaround: add any .exp file to the same experiment (experiment: e1, data: reps/r1.exp, …, calls.prop). The routing is then built, and the gradient fit runs and uses the constraint gradients (see lbfgs.conf in the repro).
Expected
Constraint-only experiments should get a routing, since the constraint gradient is otherwise available. Failing that, the refusal should come at configuration time.
As it is, the refusal comes only after the first model evaluations. In a larger model with about 20 s per evaluation (#976), a run printed nothing beyond the version line for 45 minutes before I stopped it. I didn't establish whether it would have reached this error.
Minor (same runs)
Every evaluation logs WARNING … could not set free parameter s=… (not found in this model) for the parameter named in qualitative_scale = fit s. That parameter is correctly not a model parameter, so the warning is noise.
- 主要言語
- Python
- スター
- 25
- フォーク
- 25
- 平均マージ
- 4時間 5分
- マージ済み PR(30日)
- 10
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lanl/PyBNF のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug minor
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug minor
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug silent-incorrectness
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
gh-sync ship audits cards before writing station done, so every ship reports false STATUS findingsオープンharness
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mruangutai/harness#2455 ·
メンテナーはふだん 1 日以内に返信
-
stripthink leaves thinking text in place when the chat template opens the think tag in the prompt対応中かも @MaiAditya が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
xcorr sizes its bin array from the largest observed m/z, so one out-of-range peak kills the run対応中かも @BioGeek が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
instadeepai/winnow#312 ·