Skip to content

Comments

Improve validation of required attributes in OpenMLSplit ARFF parsing#1667

Open
vishwas-droid wants to merge 3 commits intoopenml:mainfrom
vishwas-droid:improve-split-validation-only
Open

Improve validation of required attributes in OpenMLSplit ARFF parsing#1667
vishwas-droid wants to merge 3 commits intoopenml:mainfrom
vishwas-droid:improve-split-validation-only

Conversation

@vishwas-droid
Copy link

This PR improves validation logic in OpenMLSplit.

  1. Adds an explicit check for required ARFF attributes ("type", "rowid",
    "repeat", "fold") before indexing into them. This avoids relying on
    implicit list.index() errors and provides a clearer error message.

  2. Replaces an empty ValueError with a more informative message when
    repetitions contain inconsistent numbers of folds.

No behavioral changes are intended — this only improves clarity and
error reporting. Existing split-related tests pass.

@vishwas-droid
Copy link
Author

CC @geetu040 just a small ping on this.
Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant