Skip to content

Conversation

jessegrabowski
Copy link
Member

Small optimization to find_MAP. We were always computing the hessian after fitting, which can be really expensive on high-dimensional problems. The hessian is needed for laplace, but not for MAP itself. This PR adds a compute_covariance, which is False by default.

@ricardoV94
Copy link
Member

Why not called compute_hessian?

@jessegrabowski jessegrabowski merged commit 07c6ab4 into pymc-devs:main Sep 17, 2025
17 checks passed
@jessegrabowski jessegrabowski deleted the skip-cov branch September 17, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants