The documented dream proposal key is rejected by the parser, so DREAM(KZS) (proposal = kalman) cannot be selected from a conf file
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Start with the DREAM section in docs/algorithms.rst, the configuration parser's accepted keys, and DreamAlgorithm in pybnf/algorithms/samplers/dream.py. Read tests/test_dream_config_surface.py and tests/test_sampler_integration.py for the existing direct-config coverage, then trace how configuration values reach the proposal operators. Done means the documented conf-file behavior is implemented and covered by tests, or the docs explain how each variant is selected.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
docs/algorithms.rst (the DREAM section, around lines 487–527) documents a proposal key for dream, with values de, whitened and kalman. It describes DREAM(KZS) as job_type = dream, proposal = kalman and MT-P-DREAM as proposal = whitened, n_try = k. But proposal is not among the keys the conf parser accepts. A conf that sets it is refused:
Error: Parsing configuration key 'proposal' on line 8.
proposal is not a valid configuration key.
DreamAlgorithm reads config.config['proposal'] (pybnf/algorithms/samplers/dream.py:170). The tests reach the kalman and whitened operators only by setting the config dict directly (tests/test_dream_config_surface.py:132, tests/test_sampler_integration.py:198). So DREAM(KZS), a published variant the docs list, cannot be selected from a conf file at all. kalman_burnin_frac, which only matters for the kalman proposal, is a valid key.
whitened alone is reachable as job_type = p_dream.
Found while reviewing #1066. Reproduced on main at cbb8159c.
Reproduction
edition = 2
objective = gaussian, mean = 0 0, variance = 1 1
uniform_var = g1 -10 10
uniform_var = g2 -10 10
output_dir = out
job_type = dream
proposal = kalman
population_size = 4
max_iterations = 300
burn_in = 10
What should happen
Either:
- add
proposalto the parser's keys for dream, validating its value at load and refusing it on other job types, with a test that each documented value reaches the matching operator from a conf file; or - remove the
proposalexamples from the docs and say how each variant is selected.
- Ngôn ngữ chính
- Python
- Star
- 26
- Fork
- 25
- Merge trung bình
- 4 giờ 25 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lanl/PyBNF
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
min_objective stops a sampler run early and reports "Fitting complete": samplers should refuse itĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
bug minor
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
-
bug minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Issue tương tự
-
docs(contributing): the two things that silently block a PRCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởavailable documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 95/100
Nixitov/Riptide-Native#944 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
JTHCode/secretguard#24 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: middleware documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainer thường phản hồi trong vòng 1 ngày