MLX compatibility: Statistical functions
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
Hướng nghiên cứu
Bắt đầu bằng cách chạy các test được nêu tên: test_cumulative_sum, test_cumulative_prod, test_prod, test_std, test_sum và test_var. Truy vết các lỗi của chúng qua lớp tương thích Python và so sánh từng wrapper với các chữ ký của Array API cùng các quy tắc dtype được hiển thị ở đây. Được xem là hoàn tất khi các điểm không khớp về keyword và các trường hợp promotion của số nguyên nhỏ đều pass đối với cả sáu hàm thống kê.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
| Array API | MLX Analog | Status | Notes | Test Node | Result |
|---|---|---|---|---|---|
| cumulative_sum(x, /, *, axis=None, dtype=None, include_initial=False) | cumsum(a, /, axis: int | None = None, *, reverse: bool = False, inclusive: bool = True, dtype: Dtype | None = None, stream=None) | incompatible | MLX lacks the include_initial keyword (raises TypeError) and skips the standard default-integer dtype promotion — a uint8 input stays uint8 instead of promoting to uint32. |
test_cumulative_sum | Failed |
| cumulative_prod(x, /, *, axis=None, dtype=None, include_initial=False) | cumprod(a, /, axis: int | None = None, *, reverse: bool = False, inclusive: bool = True, dtype: Dtype | None = None, stream=None) | incompatible | Same two issues as cumulative_sum: missing include_initial keyword and no default-integer dtype promotion (uint8 stays uint8 instead of uint32). |
test_cumulative_prod | Failed |
| prod(x, /, *, axis=None, dtype=None, keepdims=False) | prod(a, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, *, stream=None) | incompatible | MLX has no dtype keyword (raises TypeError) and does not promote small integer inputs to the standard default integer dtype (uint8 stays uint8 instead of uint32). |
test_prod | Failed |
| std(x, /, *, axis=None, correction=0.0, keepdims=False) | std(a, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, ddof: int = 0, *, stream=None) | incompatible | MLX exposes ddof instead of the Array API's correction keyword, so passing correction raises a TypeError. |
test_std | Failed |
| sum(x, /, *, axis=None, dtype=None, keepdims=False) | sum(a, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, *, stream=None) | incompatible | MLX has no dtype keyword (raises TypeError) and does not promote small integer inputs to the standard default integer dtype (uint8 stays uint8 instead of uint32). |
test_sum | Failed |
| var(x, /, *, axis=None, correction=0.0, keepdims=False) | var(a, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, ddof: int = 0, *, stream=None) | incompatible | MLX exposes ddof instead of the Array API's correction keyword, so passing correction raises a TypeError. |
test_var | Failed |
- Ngôn ngữ chính
- Python
- Star
- 131
- Fork
- 49
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 6
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của data-apis/array-api-compat
-
blocked by upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
data-apis/array-api-compat#439 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
data-apis/array-api-compat#395 · 2 bình luận ·
-
Release 1.16 Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
data-apis/array-api-compat#476 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
data-apis/array-api-compat#473 · 4 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
data-apis/array-api-compat#465 · 3 bình luận ·
Tất cả issue của data-apis/array-api-compat
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100