Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redundancy to OpenML datasets with Figshare #1218

Merged

Conversation

Vincent-Maladiere
Copy link
Member

Addresses #1217

@Vincent-Maladiere
Copy link
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
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 :)

skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Outdated Show resolved Hide resolved
@Vincent-Maladiere Vincent-Maladiere marked this pull request as ready for review January 23, 2025 20:30
@Vincent-Maladiere
Copy link
Member Author

I think something is off with circle CI

@Vincent-Maladiere
Copy link
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

CHANGES.rst Outdated Show resolved Hide resolved
skrub/datasets/_utils.py Show resolved Hide resolved
return bunch


def _load_dataset_files(dataset_name, data_home):
Copy link
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?

skrub/datasets/_utils.py Outdated Show resolved Hide resolved
@jeromedockes
Copy link
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
Member

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

@jeromedockes
Copy link
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
Member

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

@Vincent-Maladiere
Copy link
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
24 of 25 checks passed
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