-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Accept pathlib.Path for data_home in fetch_openml #27447
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
Comments
Is this something that used to work but doesn't @riedgar-ms ? |
I expect it was working circa 2020, since that's when the change to our repo (Fairlearn) which started using |
yeah we've added the param validation recently, so this is probably a regression. |
I think it makes sense to have this option but we should have a proper testing. So some unit testing, updating the documentation and parameter validation should be enough. |
Can we just directly support all |
That would probably be okay I think |
@Charlie-XIAO Indeed, it seems fine with me. |
Thanks for the confirmation, I'll try to work on this. |
/take |
<!--- If relevant, make sure to add a description of your changes in docs/user_guide/installation_and_version_guide/v<major>.<minor>.<patch>.rst --> ## Description It appears that `fetch_openml()` no longer likes `pathlib.Path` objects. I have filed [an issue on SciKit-Learn](scikit-learn/scikit-learn#27447) about this, but in the meantime..... ## Tests <!--- Select all that apply by putting an x between the brackets: [x] --> - [x] no new tests required - [ ] new tests added - [ ] existing tests adjusted ## Documentation <!--- Select all that apply. --> - [x] no documentation changes needed - [ ] user guide added or updated - [ ] API docs added or updated - [ ] example notebook added or updated ## Screenshots <!--- If your PR makes changes to visualizations (e.g., matplotlib code) or the website, please include a screenshot of the result. -->
Describe the workflow you want to enable
When using
fetch_openml()
it would be nice ifpathlib.Path
objects were supported. Currently, there is a type check forstr | None
, so I have to convert my path objects first.Describe your proposed solution
Change the accepted type to
pathlib.Path | str | None
Describe alternatives you've considered, if relevant
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: