Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

TEST Add sparse dataset inclusion coverage for row ID and ignore attributes.

オープン 初心者向け
#1,749 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
data, testing

調査の方向性

tests/test_datasets/test_dataset.py の OpenMLDatasetTestSparse::test_get_sparse_dataset_rowid_and_ignore_and_target から始めます。Issue に記載されている対象を絞った pytest コマンドを実行し、その後、既存の除外チェックと要求されている包含動作を確認します。テストが両方のモードをカバーし、返される shape、カテゴリカル指標、target の shape を検証すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description :-

This PR improves the regression test coverage for sparse dataset retrieval when row ID and ignored attributes are configured for the dataset.

The existing test already defined a row ID attribute and an ignored attribute, but the retrieval operation was performed with both inclusion options disabled. As a result, the test confirmed that these attributes were excluded from the returned feature data, but it did not verify what happens when a caller explicitly requests them.

This change extends the test so that the inclusion behaviour is also checked. The dataset is retrieved with both include_row_id=True and include_ignore_attribute=True, allowing the test to verify that the additional attributes are correctly represented in the returned feature matrix.

The new assertions also check the dimensions of the returned data and the associated categorical information. This ensures that the test does not only execute successfully, but also confirms that the returned dataset has the expected structure.

Changes :-

  1. Extended the existing sparse dataset test to cover the case where row ID attributes are explicitly included in the returned features.

  2. Added coverage for retrieving attributes that were previously marked as ignored by using include_ignore_attribute=True

  3. Verified that enabling both inclusion options results in a feature matrix with the expected shape (600, 20000)

  4. Added a check for the length of the categorical indicator list to ensure it corresponds to all 20,000 returned features.

  5. Verified that every categorical indicator is False, matching the expected characteristics of the returned sparse dataset.

  6. Added an assertion for the target data to confirm that the returned target has the expected shape (600,)

  7. Kept the existing exclusion behaviour covered so that the test continues to validate both inclusion and exclusion scenarios.
    Testing

The updated sparse dataset test was executed using the following command:

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

主要言語
Python
スター
361
フォーク
296
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openml/openml-python のほかの issue

openml/openml-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。