Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

SparseEfficiency

Đang mở
#1,238 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 3 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
30/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start with climada/entity/exposures/base.py near line 1465, where a sparse matrix is compared with > -2, then find the sparse-structure assignments flagged in climada/hazard/test/test_base.py and climada/engine/test/test_impact_calc.py. Run those tests with warnings enabled to reproduce the SparseEfficiencyWarnings. Done when the listed call sites no longer raise the warning and the test results are unchanged. The issue has been open for 262 days with no comments or owner, so confirm scope with maintainers first.

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

Mô tả

warnings

SparseEfficiencyWarning

Changing the sparsity structure of a csr_matrix is expensive. lil and dok are more efficient.

Occurrences

  • scipy.sparse._index:168
  • scipy.sparse._index:210

Raise in

  • climada.hazard.test.test_base
  • climada.engine.test.test_impact_calc

(4 times during tests)


SparseEfficiencyWarning

Comparing a sparse matrix with -2 using > is inefficient. Try using <= instead.

Occurrence

  • climada.entity.exposures.base:1465
Ngôn ngữ chính
Jupyter Notebook
Star
478
Fork
166
Merge trung bình
2 ngày 31 phút
Pull request đã merge (30 ngày)
4

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 CLIMADA-project/climada_python

Tất cả issue của CLIMADA-project/climada_python

Issue tương tự

Thêm issue về Backend & API Design

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.