-
Notifications
You must be signed in to change notification settings - Fork 287
Implement vectorized adstock transformations #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement vectorized adstock transformations #221
Conversation
a600593
to
b6c17df
Compare
Ok. Can verify this works as (I) expected in #196. Will review now! |
This looks good to me, though the details of |
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.
I suggest adding a bunch of comments to make the convolution code a bit easier to read
Thanks @lucianopaz! |
Codecov Report
@@ Coverage Diff @@
## main #221 +/- ##
==========================================
- Coverage 94.83% 94.27% -0.57%
==========================================
Files 18 18
Lines 968 978 +10
==========================================
+ Hits 918 922 +4
- Misses 50 56 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
b341199
to
93f2ac8
Compare
@ricardoV94 Didn't this PR change the runtime of the geometric adstock to something slower (from |
Possibly, the concern was vectorization not speed. I didn't write the code, it was actually @lucianopaz, this was a small change from #114 |
Makes sense. I guess we can just try to remember in case we run into performance issues :-) |
This came up recently #670 |
Could we keep both implementations? |
Follow up to #114
Unlike #114 it doesn't try to respect
broadcastable
flags as those are in a limbo in PyTensor at the moment (see pymc-devs/pytensor#149) and are not respected anywhere else.Closes #22
Closes #196