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

[MNT] Complete Test for Sparse Dataset Row ID and Ignore Attributes Inclusion

Đang mở Phù hợp với người mới
#1,644 4 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data, testing-qa

Hướng nghiên cứu

Bắt đầu trong tests/test_datasets/test_dataset.py tại test_get_sparse_dataset_rowid_and_ignore_and_target, sau đó chạy test đó để kiểm tra hành vi hiện tại của sparse dataset. Mở rộng hoặc thêm case bằng cách sử dụng target="class", include_row_id=True và include_ignore_attribute=True. Hoàn thành khi các assertions bao quát shape đầu ra mong đợi, row ID, các cột bị ignore được loại trừ và các categorical indicators đã được cập nhật.

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

Mô tả

Good First Issue module:Data testing

The test test_get_sparse_dataset_rowid_and_ignore_and_target in test_dataset.py#L382 currently sets ignore_attribute and row_id_attribute on a sparse dataset but calls get_data() with include_row_id=False and include_ignore_attribute=False. This means the test doesn't verify behavior when these attributes are actually included in the output.

Steps:

  1. Add a new test case or extend the existing one to call get_data(target="class", include_row_id=True, include_ignore_attribute=True).
  2. Assert the correct output shape (should exclude the ignored columns and include row IDs if applicable).
  3. Verify that categorical indicators are updated accordingly.
  4. Run the test to ensure it passes with the sparse dataset.

The test should validate that sparse datasets handle row ID and ignore attributes correctly when included, improving test coverage for edge cases.

Source: Mentioned TODO in source code (same line)

Ngôn ngữ chính
Python
Star
362
Fork
304
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
2

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 openml/openml-python

Tất cả issue của openml/openml-python

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.