Skip to content

ENH: Add hyperparameter validation to classifiers#31

Merged
dguijo merged 6 commits intomainfrom
hyperparam-validation
Jul 24, 2025
Merged

ENH: Add hyperparameter validation to classifiers#31
dguijo merged 6 commits intomainfrom
hyperparam-validation

Conversation

@angelsevillamol
Copy link
Collaborator

What does this implement/fix? Explain your changes

This PR adds input validation for classifier hyperparameters in NNOP, NNPOM, OrdinalDecomposition, REDSVM and SVOREX. Validation is performed in the fit() method using the _validate_params pattern from scikit-learn. Existing tests are updated to reflect stricter checks.

Copy link
Member

@dguijo dguijo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@dguijo dguijo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dguijo dguijo merged commit e11084a into main Jul 24, 2025
9 checks passed
@angelsevillamol angelsevillamol deleted the hyperparam-validation branch July 24, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request module:classifiers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants