Skip to content

TEST Add sparse dataset row ID and ignore coverage - #1740

Open
ChiruChirag007 wants to merge 1 commit into
openml:mainfrom
ChiruChirag007:fix/1644-sparse-dataset-test
Open

ChiruChirag007 wants to merge 1 commit into
openml:mainfrom
ChiruChirag007:fix/1644-sparse-dataset-test

Conversation

@ChiruChirag007

Copy link
Copy Markdown

Description

This PR completes the sparse dataset test for row ID and ignore attribute inclusion.

The existing test only covered the case where row ID and ignore attributes were excluded. This change adds coverage for retrieving the dataset with both include_row_id=True and include_ignore_attribute=True.

Changes

  • Added a test case for including row ID and ignore attributes.
  • Verified the expected feature shape (600, 20000).
  • Verified the categorical indicator length.
  • Verified that all categorical indicators are False.
  • Verified the target shape (600,).

Testing

The following test passes:

pytest tests/test_datasets/test_dataset.py::OpenMLDatasetTestSparse::test_get_sparse_dataset_rowid_and_ignore_and_target

Pre-commit checks also pass.

Closes #1644

@ChiruChirag007

Copy link
Copy Markdown
Author

Hi maintainers,
I have completed the test coverage requested in issue #1644.
The test now covers the case where both include_row_id=True and include_ignore_attribute=True.
The targeted test passes locally, and all local pre-commit checks pass.
Thank you for reviewing the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant