Skip to content

Add redundancy to OpenML datasets with Figshare#1218

Merged
jeromedockes merged 51 commits intoskrub-data:mainfrom
Vincent-Maladiere:datasets_figshare_redundancy
Jan 27, 2025
Merged

Add redundancy to OpenML datasets with Figshare#1218
jeromedockes merged 51 commits intoskrub-data:mainfrom
Vincent-Maladiere:datasets_figshare_redundancy

Conversation

@Vincent-Maladiere
Copy link
Copy Markdown
Member

Addresses #1217

@Vincent-Maladiere
Copy link
Copy Markdown
Member Author

Vincent-Maladiere commented Jan 20, 2025

Datasets to upload as CSV, in a zip:

  • Midwest_survey
    • github
    • OSF
  • employee_salaries
    • github
    • OSF
  • drug-directory
    • github
    • OSF
  • world bank + happiness records, cf this skrub example
    • github
    • OSF
  • toxicity tweets
    • github
    • OSF
  • credit fraud
    • github
    • OSF
  • movie-lens
    • github
    • OSF
  • bike-sharing? (cf this skrub example)
    • github
    • OSF
  • vgsales? (cf this skrub example
    • github
    • OSF
  • flights/airports + weather data example
    • github
    • OSF

Copy link
Copy Markdown
Member

@jeromedockes jeromedockes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! a first few comments :)

@Vincent-Maladiere Vincent-Maladiere marked this pull request as ready for review January 23, 2025 20:30
@Vincent-Maladiere
Copy link
Copy Markdown
Member Author

I think something is off with circle CI

@Vincent-Maladiere
Copy link
Copy Markdown
Member Author

Vincent-Maladiere commented Jan 23, 2025

TODO left:

  • Some docstring are missing
  • The documentation need to be updated to reflect the new functions

return bunch


def _load_dataset_files(dataset_name, data_home):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this method should be named load_dataset_files, as it is used outside of this module?

@jeromedockes
Copy link
Copy Markdown
Member

jeromedockes commented Jan 24, 2025

there seems to be a problem with the videogame sales dataset (example 6 -- see the negative r2 scores), I'll look into it

edit: the dataset is ordered by decreasing global sales so we needed kfold with shuffle=True, I just pushed the fix

@jeromedockes
Copy link
Copy Markdown
Member

I added the docstrings. @Vincent-Maladiere what was the second TODO?

@jeromedockes
Copy link
Copy Markdown
Member

jeromedockes commented Jan 24, 2025

I uploaded the zip files to osf and updated the urls in this PR so it should be mostly ok now

checking uploads
import requests
import hashlib

from skrub.datasets._utils import DATASET_INFO


for name, data in DATASET_INFO.items():
    print(name)
    assert len(data['urls']) == 2
    assert 'github.com' in data['urls'][0]
    assert 'osf.io' in data['urls'][1]
    for url in data['urls']:
        content = requests.get(url).content
        assert hashlib.sha256(content).hexdigest() == data['sha256']

@jeromedockes
Copy link
Copy Markdown
Member

@glemaitre if you have time you may want to have a look at this pr, too

@Vincent-Maladiere
Copy link
Copy Markdown
Member Author

+1 for the changes. I think this PR is ready for a final review before merging (@glemaitre if you have some spare time) :)

@jeromedockes jeromedockes merged commit 0eb71e7 into skrub-data:main Jan 27, 2025
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.

2 participants