Skip to content

MAINT validate parameter in MDS#23650

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

MAINT validate parameter in MDS#23650
jeremiedbb merged 6 commits intoscikit-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

kianelbo and others added 2 commits June 23, 2022 19:57
Co-authored-by: Meekail Zain <34613774+Micky774@users.noreply.github.com>
@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
Copy link
Copy Markdown
Member

@glemaitre glemaitre 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
Copy Markdown
Member

@jeremiedbb jeremiedbb left a comment

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 <34613774+Micky774@users.noreply.github.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
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