Skip to content

DOC Fix doc build now that OpenML is back - #30715

Merged
ogrisel merged 5 commits into
scikit-learn:mainfrom
lesteve:fast-fix-openml
Jan 27, 2025
Merged

ogrisel merged 5 commits into
scikit-learn:mainfrom
lesteve:fast-fix-openml

Conversation

@lesteve

@lesteve lesteve commented Jan 25, 2025 •

Copy link
Copy Markdown
Member

OpenML should be mostly back to normal according to #30708 (comment).

Actually the example with the OpenML parquet file still fails. For now I am using https://github.com/scikit-learn/examples-data to host the file. In the medium term we will be able to use a similar URL in https://data.openml.org, see see #30708 (comment).

@github-actions

github-actions Bot commented Jan 25, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 3c76617. Link to the linter CI: here

@lesteve lesteve changed the title Fast fix openml DOC Fix doc build now that OpenML is back Jan 25, 2025

@ogrisel ogrisel left a comment

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.

Thanks, @lesteve. Will add an inline comment with a TODO and merge tot get green CI.

@ogrisel
ogrisel enabled auto-merge (squash) January 27, 2025 08:57
@ogrisel
ogrisel merged commit 8c2272e into scikit-learn:main Jan 27, 2025
@lesteve
lesteve deleted the fast-fix-openml branch January 27, 2025 09:53
@lesteve

lesteve commented Jan 29, 2025 •

Copy link
Copy Markdown
Member Author

@PGijsbers it looks like the equivalent data.openml.org parquet URL (https://data.openml.org/datasets/0004/44063/dataset_44063.pq) now works so I am guessing you have already done the move towards data.openml.org for the parquet files?

I was wondering whether you would recommend relying directly on this URL though. My understanding is that this may be an OpenML implementation and that the parquet URL could well change in the future. The "right" way is to look at the data description URL and its parquet_url field.

$ curl -s https://api.openml.org/api/v1/json/data/44063 | jq .data_set_description.parquet_url
"https://data.openml.org/datasets/0004/44063/dataset_44063.pq"

If that is considered too likely to change, maybe we could stick with the parquet file in our https://github.com/scikit-learn/examples-data repo as we are currently doing.

For the context: this example is trying to be somewhat more realistic by showing how to load a parquet file directly. In the majority of cases, users are expected to load their own data rather than using sklearn.datasets.fetch_openml and the vast majority of our examples use scikit-learn fetchers.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants