Skip to content

Remove a redundant self-assignment in multilayer perceptron #27497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

chkoar
Copy link
Contributor

@chkoar chkoar commented Sep 29, 2023

What does this implement/fix? Explain your changes.

This statement seems redundant to me unless I am missing something.

@github-actions
Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 78dc3ec. Link to the linter CI: here

Copy link
Member

@adrinjalali adrinjalali 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 wonder if it's a bug and it was meant to be something else lol

@lesteve
Copy link
Member

lesteve commented Sep 29, 2023

I had a quick look at #24683 that added the redundant line and I could not find a strong evidence that another variable was meant. What seems more likely is that first self.validation_scores_ was changed to a numpy array in bb36379 and then reverted in 48d1c4c following #24683 (comment).

@lesteve lesteve merged commit 0856062 into scikit-learn:main Sep 29, 2023
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
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.

3 participants