Closed ioannisrpt closed 1 year ago
Fyi, I have also included the jacobian in the minimization problem when 'SLSQP’ is used in an effort to further speed up the estimation but the difference is minimal. However, I can create a pull request with the jacobian included if you want.
Hi @ioannisrpt, Thank you for bringing this to my attention! I have updated the changes to the “logl” function. The rest of the code has been adjusted accordingly.
I am open to any suggestions regarding the optimization algorithm.
I really appreciate your efforts in contributing to pycop.
Many thanks 🙂
@maximenc I'm glad that I helped! Including the Jacobian does not improve speed much so I think it is best not to include it because it will make the code bloated for no reason.
I see that the log likelihood function in
estimation.py
is defined using the Pythonsum
and a list of the pseudo observations. However, one can achieve much better speed ifnumpy.sum
is used on an anumpy.ndarray
. Thus if we replacein
estimation.py
withwe can achieve better performance. Hope that helps everyone enjoy
pycop
more.