Skip to content

Improve error message for estimation_procedure by showing readable names instead of IDs#1723

Open
codejasleen wants to merge 2 commits intoopenml:mainfrom
codejasleen:fix-error-message-clean
Open

Improve error message for estimation_procedure by showing readable names instead of IDs#1723
codejasleen wants to merge 2 commits intoopenml:mainfrom
codejasleen:fix-error-message-clean

Conversation

@codejasleen
Copy link

@codejasleen codejasleen commented Mar 24, 2026

closes #1091

Summary

Improved error message for invalid estimation procedures by replacing numeric IDs with human-readable names.

Changes

  • Extract estimation procedure IDs from server error message
  • Map IDs to names using _get_estimation_procedure_list()
  • Display readable format instead of numeric IDs

Before

acceptable inputs: [7, 8, 9]

After

acceptable inputs:
7: 10-fold Crossvalidation
8: 5 times 2-fold Crossvalidation

Notes

This improves usability by making error messages more understandable for users.

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.

Improve error message when assigning an invalid estimation procedure to a new task

1 participant