Fair Gaussian kernel score is finite on the numba path with an infinite member

Đang mở
#173 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
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá 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 by tracing the fair estimator in gksuv_ensemble and gksmv_ensemble through their array and numba paths; the report says both differ when an ensemble member is infinite, with and without ens_w. Add or locate tests that compare both backends for this input and check that the fair estimator returns NaN consistently, then run the focused Gaussian kernel score tests.

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

Mô tả

bug

With an infinite ensemble member, gksuv_ensemble and gksmv_ensemble with estimator="fair" return a finite score on the numba path and NaN on the array path, with and without ens_w. The other estimators give NaN on both paths. Found while checking the Phase 4 kernel rewrites; it is already the case on main.

import numpy as np
import scoringrules as sr

obs = np.zeros(2)
fct = np.array([[0.0, 1.0, np.inf], [0.5, -1.0, 2.0]])
sr.gksuv_ensemble(obs, fct, estimator="fair")                   # array path: nan in the first row
sr.gksuv_ensemble(obs, fct, estimator="fair", backend="numba")  # finite
Ngôn ngữ chính
Python
Star
108
Fork
15
Merge trung bình
2 giờ
Pull request đã merge (30 ngày)
19

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 frazane/scoringrules

Tất cả issue của frazane/scoringrules

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.