mh given several beta values pools every chain into one samples.txt, so its credible intervals mix tempered and untempered draws
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
- 62/100
Hướng nghiên cứu
Start by tracing how mh reads the beta configuration and writes Results/samples.txt, then check the code paths that produce credible intervals and histograms. Reproduce with the supplied two-beta configuration and compare each chain’s draws with the pooled results. Done when multiple beta values are rejected at startup with guidance to use pt, or each beta’s draws and summaries are written separately.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Given several values for beta, mh runs one chain per beta and appends every chain's draws to the same Results/samples.txt. The credible intervals and histograms are computed from that pooled file, so the reported posterior mixes tempered and untempered draws. It is not the posterior at any one beta. The only notice is the existing warning "You specified multiple beta values with the method mh. This is an odd thing to do."
Found while reviewing #1066. Reproduced on main at cbb8159c. mh is deprecated, which lowers the priority, but the result is silently wrong.
Reproduction
Analytic target. Each parameter has variance 1, so the chain at beta = 1 should have sd 1 and the chain at beta = 0.25 should have sd 2:
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 = mh
population_size = 2
beta = 1 0.25
step_size = 1
max_iterations = 2000
burn_in = 200
sample_every = 1
pybnf -c x.conf -o:
- It exits 0 with "Fitting complete".
samples.txtholds 3600 draws, 1800 from each chain. - Split by chain (
run0,run1in the draw names), the draws have sd 1.86 and 1.94 for g1 and g2 in one chain, and 1.04 and 1.01 in the other. Those are close to the beta = 0.25 and beta = 1 answers of 2 and 1. - Pooled, the sd is 1.53 and 1.55, against about 1.58 for an even mix of the two. That is not the posterior at either beta.
credible95.0_final.txtreports g1 in [-2.79, 3.45] and g2 in [-3.08, 3.16]. Those are the pooled file's 2.5% and 97.5% points. The beta = 1 answer is ±1.96.
What should happen
Refuse more than one beta for mh at start, pointing to pt for a temperature ladder, as #860 now does for am, dream, p_dream and hmc. Otherwise, write each beta's draws, intervals and histograms separately.
- 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ự
-
Test: to_hijri() accepts datetime.datetime and uses only the date partCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở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 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresCó thể đã có người làm @AshutoshSingh840 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainer thường phản hồi trong vòng 1 ngày