yixuan / LBFGSpp

A header-only C++ library for L-BFGS and L-BFGS-B algorithms
https://lbfgspp.statr.me/
MIT License
542 stars 103 forks source link

return covariance of estimated parameters #42

Open vibertd opened 4 months ago

vibertd commented 4 months ago

Hi, thank you for your very nice work to port this algorithm to C++.

Would it be possible to add a method to get the final approximated covariance matrix of the parameters, ie the inverse Hessian, like for instance the final_grad does for the final gradiant of the objective function ? The scipy implementation have this capability.