continue_run applies adaptive_files/MLE_params.txt by position, with no check of its length or of which parameter each value belongs to
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read pybnf/algorithms/samplers/base.py around lines 371–374 and pybnf/algorithms/samplers/adaptive_mcmc.py around lines 283 and 630 to trace how MLE values are saved and loaded. Check the existing tests for continue_run and how configuration parameter names are represented. Done when loading rejects a count or name mismatch with a clear error, and a one-parameter file loads without an indexing error.
由索引模型根据 Issue 内容生成。
描述
adaptive_files/MLE_params.txt holds values only, with no parameter names (written by np.savetxt at pybnf/algorithms/samplers/adaptive_mcmc.py:630). continue_run = 1 applies those values by position (pybnf/algorithms/samplers/base.py:371-374; adaptive_mcmc.py:283). Nothing checks the file against the configuration:
- Too many values: an extra value is silently dropped.
- Reordered declarations: if the
uniform_varlines are reordered between runs, or the file is permuted, every chain starts from the wrong values, possibly outside the boxes, with no error. - One free parameter:
np.loadtxtreturns a 0-d array, soself.mle_start[i]should raise "too many indices". The 0-d return is confirmed; the fullcontinue_runrun is not.
#1013 covers the same problems for starting_params; this is the continue_run side. It was found in independent review of the #984 follow-ups.
Fix: write the names, and on load check the count and the names against the configuration. Refuse a mismatch, naming it.
- 主要语言
- Python
- 星标
- 25
- 派生
- 25
- 平均合并
- 4 小时 5 分钟
- 30 天内合并 PR
- 10
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 ·