Skip to content

Updated _base.py #31240

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

Closed
wants to merge 1 commit into from
Closed

Updated _base.py #31240

wants to merge 1 commit into from

Conversation

priyansh2313
Copy link

Issue #31235
Screenshot 2025-04-22 205821
Clipping function becomes zero when x>30 or x< -30 . So Clipping helps keeping it in a range where gradient flow is non-zero and training can proceed.

This change improves the numerical stability and learning performance of the logistic (sigmoid) activation function used in MLPClassifier and MLPRegressor by clipping the input range to the sigmoid.

Clipping function becomes zero when x>30 or x< -30 . So Clipping helps keeping it in a range where gradient flow is non-zero and training can proceed.
Copy link

✔️ Linting Passed

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

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

@lucyleeow
Copy link
Member

I think it was decided this was 'not planned' in #31235, but documentation improvement welcome.

@lucyleeow lucyleeow closed this Apr 28, 2025
@priyansh2313
Copy link
Author

okay

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.

2 participants