Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error TuringOptimExt.jl with information matrix/vcov (#2167)
* Update TuringOptimExt.jl Fix errors in information matrix/variance-covariance matrix calculation for MLEs/MAPs * Update OptimInterface.jl: use vcov instead of informationmatrix in linear regression test * Update OptimInterface.jl: fix StatsBase integration tests * Update TuringOptimExt.jl, fix calculation of info matrix Usually, the information matrix is the negative of the Hessian of the log likelihood, but because Optim minimizes the negative of the log likelihood, we don't need to take the negative here. The Hessian is the info matrix in this context. * Update OptimInterface.jl: calculate explicit info and vcov matrices in test The analytical values for the information and vcov matrices are now calculated using the standard equations. Added separate tests for both matrices. * Fix silly error in calculation of info/vcov matrix. Correct linear regression test. --------- Co-authored-by: Hong Ge <[email protected]>
- Loading branch information
3a315ce
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.
@JuliaRegistrator register
3a315ce
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.
Registration pull request created: JuliaRegistries/General/102824
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: