[MNT] Complete Test for Sparse Dataset Row ID and Ignore Attributes Inclusion
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- data, testing-qa
Direzione di ricerca
Inizia in tests/test_datasets/test_dataset.py, alla voce test_get_sparse_dataset_rowid_and_ignore_and_target, quindi esegui questo test per esaminare il comportamento attuale dello sparse dataset. Estendi o aggiungi il caso usando target="class", include_row_id=True e include_ignore_attribute=True. Il lavoro è completato quando le assertions coprono la forma di output prevista, gli ID delle righe, le colonne ignorate escluse e gli indicatori categorici aggiornati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- Add a new test case or extend the existing one to call
get_data(target="class", include_row_id=True, include_ignore_attribute=True). - Assert the correct output shape (should exclude the ignored columns and include row IDs if applicable).
- Verify that categorical indicators are updated accordingly.
- 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)
- Lingua principale
- Python
- Stelle
- 361
- Fork
- 296
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openml/openml-python
-
Documentation Good First Issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
openml/openml-python#1708 · 6 commenti ·
-
Good First Issue module:Run testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
openml/openml-python#1646 · 7 commenti · 2 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
openml/openml-python#1714 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
openml/openml-python#1711 · 1 commento ·
-
[MNT] `mypy` fixes Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
openml/openml-python#1696 · 3 commenti ·
Tutte le issue di openml/openml-python
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
use-agent-os/agent-os#3314 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
BasedHardware/omi#15662 · 1 commento ·
-
documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
AiursoftWeb/AnduinOS-2#19 ·