-
Notifications
You must be signed in to change notification settings - Fork 216
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
Non-scalar ls
in HSGP
/ HSGPPeriodic
#1280
Comments
HSGP
/ HSGPPeriodic
ls
in HSGP
/ HSGPPeriodic
Have you done this logic @bwengals ? |
This would be great! I think we would need to make sure the spectral density expressions vecorize over Actually, it seems the spectral density functions do handle vector length scales: |
Yes, think we just need the dims to broadcast correctly. But i tried out and there needs a little thought behind the following operations with psd, etc |
@juanitorduz they do handle vector lengthscales, but in terms of input dimension. For example, a spatial GP with a different lengthscale for the x and the y directions. It'd be really nice if they could handle both input dimension and the case below (vectorized, multi-dimensional inputs), but I had no idea how to do that. There are examples here of using a vector of lengthscales for the case where you have multiple GPs each with a different lengthscale that you're implementing in a vectorized way. I'm purposefully saying they're multiple GP's because if the lengthscales are different then the kernels are different, and that's what differentiates one GP from another. I'd bet for most hierarchical GPs they'd share the same lengthscale parameter. Which of these two cases are you trying to implement? |
Thanks @bwengals for the clarification. I think for MMMs you are right, all lengths scales would be similar. I think the main ingredients are in the HSGP advanced example you shared (which should be a similar strategy as in https://www.pymc-labs.com/blog-posts/modelling-changes-marketing-effectiveness-over-time/ I believe) |
I would like to be able to use vector (including hierarchical)
ls
for these two classes.It would look like this:
The dims would have to be handled here:
pymc-marketing/pymc_marketing/mmm/hsgp.py
Lines 720 to 730 in 181b348
The text was updated successfully, but these errors were encountered: