start_point.txt labels values set by starting_params as 'sampled'

Đang mở
#1,014 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

Read Algorithm._emit_start_point in pybnf/algorithms/base.py and how sampler initialization applies starting_params and continue_run in pybnf/algorithms/samplers/base.py. Check the code and tests covering Results/start_point.txt labels and its legend. Done when rows seeded by either option identify that source and the legend defines both labels.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug minor silent-incorrectness

Results/start_point.txt exists so a reader can tell where a fit really started, and the source column is the part to read (docs/troubleshooting.rst, "Where did my fit actually start?"). For a sampler seeded with starting_params, every row says sampled. The file's own legend defines that as "drawn from the prior / bounds, as a population algorithm or sampler does". The values were not drawn. They are exactly the ones the user wrote.

Reproduce

An am run with an analytical objective, declared kcat, Km, alpha, with starting_params = 7 70 3:

# source: start_point -- a "start_point = <p> <v>" line
#         sampled    -- drawn from the prior / bounds, as a population

starts	1
starts_pinned	0
kcat	7	sampled	0.5	50
Km	70	sampled	1	500
alpha	3	sampled	0.1	20

The values are right (7, 70, 3, in declaration order), but the label says they were drawn at random.

continue_run = 1, which seeds every chain from adaptive_files/MLE_params.txt, takes the same branch, so reading the code, its rows are labelled sampled too. I did not run that case.

Where

Algorithm._emit_start_point in pybnf/algorithms/base.py (the source chain near line 2748) picks between refine, the start-point spellings, sampled, box_center, point and prior. Nothing in that chain knows about starting_params or continue_run, so a sampler that uses either one falls through to sampled. The sampler base applies both after the start point is resolved (pybnf/algorithms/samplers/base.py, lines 369–378).

Expected

These rows should say where the values came from, for example starting_params or continue_run, and the legend should define both. Every chain gets the same values, so the label is true for every chain, not only the one the file records.

Found during the review of #984.

Ngôn ngữ chính
Python
Star
25
Fork
25
Merge trung bình
4 giờ 5 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của lanl/PyBNF

Tất cả issue của lanl/PyBNF

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.