CRPS returns float64 for float32 numpy inputs

Đang mở
#145 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
58/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ệ
numpy, python
Lĩnh vực
data

Hướng nghiên cứu

Start by tracing the CRPS functions that accept NumPy inputs and checking how constants and arguments affect the result dtype; the issue does not name specific files or tests. Compare behavior with the pwm, qd and int ensemble estimators mentioned in #143, then add or update coverage for float32 inputs. Done when the affected CRPS functions preserve float32 output for the example input.

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

Mô tả

bug

Most CRPS functions upcast float32 inputs to float64, mainly because Python float constants and arguments become float64 arrays.

o = np.float32([0.3, 1.2])
sr.crps_normal(o, np.float32(0), np.float32(1)).dtype  # float64

#143 fixes this for the pwm, qd and int ensemble estimators. Related: comb in the extension layer returns float32 for integer torch inputs.

Ngôn ngữ chính
Python
Star
108
Fork
15
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
9

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.