-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Create error surface gradient descent plot example #20156
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
Conversation
This example shows how to plot an error surface for the descending gradient using matplotlib.
@github-actions
github-actions
bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a while, please feel free to ping @matplotlib/developers
or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join us on gitter for real-time discussion.
For details on testing, writing docs, and our review process, please see the developer guide
We strive to be a welcoming and open project. Please follow our Code of Conduct.
Update for compatibility with matplotlib 3.4.1
Thanks for the PR!
We have lots of examples, so we have to be a bit finicky about what we include. I wouldn't call this a statistics plot per-se; the statistics are all pre-plot, and frankly they are a little mysterious (don't worry I understand the underlying method, but I'm not sure how I'd understand it from this example). After that, I'm not sure it offers anything unique from the other 3-D plots already in the examples?
Thanks for the PR!
We have lots of examples, so we have to be a bit finicky about what we include. I wouldn't call this a statistics plot per-se; the statistics are all pre-plot, and frankly they are a little mysterious (don't worry I understand the underlying method, but I'm not sure how I'd understand it from this example). After that, I'm not sure it offers anything unique from the other 3-D plots already in the examples?
Hello, you are right about that! Thanks for answering me!
@vitorglemos Did you think this was unique enough to be in the gallery? Or did you just think this was useful, and wanted to share? Thanks!
@vitorglemos Did you think this was unique enough to be in the gallery? Or did you just think this was useful, and wanted to share? Thanks!
I thought the example could be useful for the statistics examples, but maybe there is something similar in another example folder.
Would you be interested in turning this into a post for our blog? With a little more discussion about gradient descents and also plotting?
Would you be interested in turning this into a post for our blog? With a little more discussion about gradient descents and also plotting?
@story645 Of course, I have some more detailed examples and discussions about gradient descent in practice.
Awesome! 🤩 Contributing guide is at https://matplotlib.org/matplotblog/posts/how-to-contribute/
OK, I'll close this here. Thanks @vitorglemos
This example shows how to plot an error surface for the descending gradient using matplotlib.
PR Summary
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).