MLX compatibility: Statistical functions

Đang mở
#463 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
tooling

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

Mở hướng dẫn đóng góp

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 data-apis/array-api-compat

Tất cả issue của data-apis/array-api-compat

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.