Skip to content
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

Notebook with experimental newton implementation #944

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aseyboldt
Copy link
Member

Some intermediate code for inla

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -0,0 +1,181 @@
{
Copy link
Member

@jessegrabowski jessegrabowski Jul 19, 2024

Choose a reason for hiding this comment

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

Line #7.        grad = pt.linalg.solve(jac, f_x, assume_a="sym")

You're assuming jacobian is symmetrical, but that shouldn't be true in general right?


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, you are right. It is in the case of minimization, but might not be for different root finding problems. We should add an option for that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, good catch! The jacobian is indeed generally asymmetrical for n>1.

At first I thought you were talking about the Hessian. That is symmetrical but with a really weird caveat for the case when things are twice differentiable but the second derivatives aren't continuous. (In these sorts of cases you can get some really weird stuff like a fractal trail that's flat at every point but ascends.)

@theorashid theorashid mentioned this pull request Aug 19, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants