am with adaptive = 1 dies with an unknown ValueError, and with adaptive = 0 and one recorded iteration writes combined_params.txt one value per line
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 67/100
調査の方向性
Start with tests/test_sampler_load_refusals_review4.py, especially the strict xfail test_an_accepted_am_run_writes_whole_draws_into_combined_params, and reproduce both configurations in the issue. Then inspect pybnf/algorithms/samplers/adaptive_mcmc.py:1065 and the combine_chains_params path. Done means both cases either work with correctly shaped draws or fail at startup with an error naming the cause, and the xfail is removed.
索引モデルが issue の本文から書いたものです。
説明
am accepts adaptive = 0 and adaptive = 1; since #921 the start check says "adaptive must be 0 or more". Neither value works:
adaptive = 1: the run dies at the second iteration with "Sorry, an unknown error occurred: ValueError: cannot reshape array of size 1 into shape (1,2) ... Please report this bug". The adapted covariance is seeded from a one-row history (pybnf/algorithms/samplers/adaptive_mcmc.py:1065).adaptive = 0with one recorded iteration: the run exits 0 with "Fitting complete". ButResults/A_MCMC/Runs/combined_params.txthas each chain's draw written down the file, one value per line: 6 one-column lines for 3 chains × 2 parameters. Nothing that reads the file can use it.
Found while reviewing #1066. Reproduced on main at cbb8159c. These are small values that few runs will use, hence the low priority.
Reproduction
edition = 2
objective = gaussian, mean = 0 0, variance = 1 1
uniform_var = g1 -10 10
uniform_var = g2 -10 10
random_seed = 1
output_dir = out
job_type = am
population_size = 3
step_size = 0.5
burn_in = 0
adaptive = 1
max_iterations = 4
sample_every = 2
That conf gives the ValueError. With adaptive = 0 and max_iterations = 2, combined_params.txt reads:
g1 g2
4.294397418130891708e+00
-1.254456986596764523e+00
1.081550685528519296e+00
...
Both cases are a strict xfail in tests/test_sampler_load_refusals_review4.py: test_an_accepted_am_run_writes_whole_draws_into_combined_params. The neighbouring test shows that adaptive = 0 with more iterations, and adaptive = 2, write whole draws.
What should happen
Either handle the one-draw history (2-D arrays in combine_chains_params and in the covariance seeding), or refuse adaptive = 1, and the one-recorded-iteration case, at start with an error naming the cause. Remove the xfail with the fix. Related: #772.
- 主要言語
- Python
- スター
- 26
- フォーク
- 25
- 平均マージ
- 4時間 25分
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lanl/PyBNF のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
min_objective stops a sampler run early and reports "Fitting complete": samplers should refuse itオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
bug minor
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
-
bug minor
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
似ている issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンgood first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
polish
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scores対応中かも @AshutoshSingh840 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
UKGovernmentBEIS/control-arena#992 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
mvalentsev/awesome-free-ai-coding#70 ·
メンテナーはふだん 1 日以内に返信