-
-
Notifications
You must be signed in to change notification settings - Fork 210
[ENH] Simplified Unified Get/List API #1552
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1552 +/- ##
===========================================
- Coverage 85.24% 64.11% -21.14%
===========================================
Files 38 36 -2
Lines 5008 4372 -636
===========================================
- Hits 4269 2803 -1466
- Misses 739 1569 +830 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Redundant syntax for getters
In getters, syntax is repeated and redundant, mainly through
the submodule having to be imported or addressed.
API implementation
Implementation Details
Added
openml.list_all(object_type: str, **kwargs) -> Any, a dispatcher that forwards to:list_datasetslist_taskslist_flowslist_runsAdded
openml.get(object_type_or_name, identifier=None, **kwargs) -> Any, a unified getter with support for:Type-based lookup
Name-only shortcut for datasets
Exported both functions via
__all__and documented them with docstrings.Preserved full backward compatibility:
openml.datasets.get_dataset) remain unchanged.Added unit tests to validate dispatcher behavior without requiring network access.