Open ProxyCausal opened 5 months ago
@ProxyCausal would you like to try opening a PR? :)
Should be able to make use of pytensor for the derivatives. pt.grad is the function?
@cetagostini Is this something we can use in latest PR?
Yes, we have a discussion about it on retreat. Let's bring that back, if we have a way to be able to estimate derivatives for all current saturations and adstock, then it would be a nice switch from symbolic to analytical.
I'm wondering why in the budget optimizer analytical gradients are not used instead of finite difference since they are faster and more accurate. With large dataset finite difference doesn't seem feasible. It seems gradients for adstock and hill isn't hard to calculate in analytical form.