Skip to content

MAINT validate parameter in MDS - #23650

Merged
jeremiedbb merged 6 commits into
scikit-learn:mainfrom
kianelbo:mds-validate
Jun 28, 2022
Merged

jeremiedbb merged 6 commits into
scikit-learn:mainfrom
kianelbo:mds-validate

Conversation

@kianelbo

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

towards #23462

What does this implement/fix? Explain your changes.

Added _parameter_constraints for MDS and removed the existing individual param checks.

@kianelbo kianelbo changed the title Use _validate_params in MDS [MRG] Use _validate_params in MDS Jun 16, 2022
@jeremiedbb jeremiedbb added No Changelog Needed Validation related to input validation labels Jun 21, 2022
@Micky774

Copy link
Copy Markdown
Contributor

Looks like there was a failure on the CI side of things (I don't think due to this PR). Perhaps merge main and push changes to prompt a new round of CI checks

Comment thread sklearn/manifold/_mds.py Resolved
@Micky774

Copy link
Copy Markdown
Contributor

@jeremiedbb In this case since MDS is essentially a light wrapper around the smacof function, would it be appropriate to include validation of that function via decorator in this PR, or would you prefer these PRs to stay focused on only the estimator API?

@glemaitre

Copy link
Copy Markdown
Member

would you prefer these PRs to stay focused on only the estimator API?

I think this is better to stay focused on the class for the moment.

@glemaitre
glemaitre self-requested a review June 27, 2022 09:55
@glemaitre glemaitre changed the title [MRG] Use _validate_params in MDS MAINT validate parameter in MDS Jun 27, 2022

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. I just pushed a fix to the constraint of eps

@jeremiedbb
jeremiedbb merged commit 74c2916 into scikit-learn:main Jun 28, 2022
@jeremiedbb

Copy link
Copy Markdown
Member

Thanks @kianelbo

@kianelbo
kianelbo deleted the mds-validate branch June 28, 2022 13:34
ogrisel pushed a commit to ogrisel/scikit-learn that referenced this pull request Jul 11, 2022
Co-authored-by: Meekail Zain <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
Co-authored-by: jeremiedbb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants