openml-python icon indicating copy to clipboard operation
openml-python copied to clipboard

Improve error message for inconsistent fold counts in OpenMLSplit

Open axif0 opened this issue 1 month ago • 1 comments

Replaced the generic any() check with an explicit loop to identify the mismatched repetition. Implemented a descriptive error message that specifies which repetition has the incorrect number of folds and compares it to the expected count (from repetition 0).

axif0 avatar Nov 25 '25 09:11 axif0

Codecov Report

:x: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review. :white_check_mark: Project coverage is 56.42%. Comparing base (4b1bdf4) to head (91e5abf).

Files with missing lines Patch % Lines
openml/tasks/split.py 75.00% 1 Missing :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #1512       +/-   ##
============================================
- Coverage    79.90%   56.42%   -23.48%     
============================================
  Files           36       36               
  Lines         4349     4351        +2     
============================================
- Hits          3475     2455     -1020     
- Misses         874     1896     +1022     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov-commenter avatar Nov 25 '25 14:11 codecov-commenter