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 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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分
- マージ済み 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 ·