On the gradient path a .net model ends the whole fit on any simulation failure, where an SBML model scores the same failure as a failed point

Đang mở
#1,040 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
57/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
backend, testing

Hướng nghiên cứu

Start with pybnf/bngsim_model/net_model.py:1272-1290 and compare the .net exception handling with the SBML path; read #1019 and AGENTS.md for the intended failed simulation behavior. Find the existing backend tests and add coverage for configuration-level refusals, point-dependent refusals, and integrator failures on both backends. Done means configuration-level refusals end the run while point-dependent refusals and integrator failures count as failed points.

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

Mô tả

bug

When a sensitivity request is set, the .net execute path turns any backend exception other than a timeout into a PybnfError (pybnf/bngsim_model/net_model.py:1272-1290), which ends the fit. The SBML path scores a run-time SensitivityUnsupportedError as a failed point.

Why it matters. Some run-time refusals depend on the parameter values. One example is a parameter exactly on a max() kink, which is where an L-BFGS-B bound projection lands. The same point therefore ends a .net fit but is skipped by an SBML fit. A genuine integrator failure at an extreme point also ends a .net gradient fit, though AGENTS.md treats that as a failed simulation.

#1019's review chose the SBML behaviour on purpose: ending the fit on a run-time refusal stopped fits that recover.

Fix: decide one rule for both backends, and test it on both:

  • a configuration-level refusal ends the run;
  • a point-dependent refusal or integrator failure is a failed point.
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.