[ENH] V1 → V2 API Migration - evaluations#1606
[ENH] V1 → V2 API Migration - evaluations#1606EmanAbdelhaleem wants to merge 78 commits intoopenml:mainfrom
Conversation
fkiraly
left a comment
There was a problem hiding this comment.
looks like circular imports
|
@geetu040 We have circular imports here cuz of importing Error message: |
geetu040
left a comment
There was a problem hiding this comment.
Please update the listing functionality with the suggested approach in #1575 (comment). And also sync this PR with my base PR.
I don't really have an explanation for why this could be happening, can you try to sync with my branch and see if it persists and we can have a look, otherwise I am going to refactor the config part so it may automatically fix this. |
Updated, please check |
geetu040
left a comment
There was a problem hiding this comment.
Looks good overall, should be fine with few changes as suggested. And some comments are open for discussion.
openml/evaluations/functions.py
Outdated
|
|
||
|
|
||
| def _list_evaluations( # noqa: C901 | ||
| def _list_evaluations( |
There was a problem hiding this comment.
I suspect you didn't completely remove this and replace with api_context.backend.evaluations.list in partial because of the circular import error? As discussed in the standup, I think the api_context.backend.evaluations.list should return OpenMLEvaluation object, so best comply with both v1/v2 interface.
e7fd1bc to
152bfef
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1606 +/- ##
==========================================
+ Coverage 52.04% 53.90% +1.86%
==========================================
Files 36 63 +27
Lines 4333 5059 +726
==========================================
+ Hits 2255 2727 +472
- Misses 2078 2332 +254 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dc67c2d to
04c533f
Compare
This reverts commit fd43c48.
aac91a8 to
d1de0de
Compare
|
@geetu040 Ready for review |
Thanks for pointing this out, seems like a fix for the core PR |
- removing this since it was not part of the sdk previously - some tests fail because of the timeout in stacked PRs - this option can easily be added if needed in future
Fixes #1623
Depends on #1576
Related to #1575
Details
This PR implements
Evaluationsresource, and refactor its existing functions