-
Notifications
You must be signed in to change notification settings - Fork 5
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
catch incorrect length of lengthscale vector #12
Comments
This is messy. I wanted to add a check similar to greta.gp/R/kernel_constructors.R Line 81 in 448f29c
But the dimension of the design matrix is unknown at this stage. So possibly needs to go in the kernel call, e.g., greta.gp/R/greta_kernel_class.R Line 172 in 448f29c
Then the issue is that it needs to check only when |
Probably need to do the same with other parameters, e.g., Lines 74 to 86 in 448f29c
I assume the extra dims aren't dropped before here, in which case it's a result of how tf handles broadcasting. |
I think this might be captured here? https://github.com/greta-dev/greta.gp/blob/main/R/checkers.R https://github.com/greta-dev/greta.gp/blob/main/R/kernel_constructors.R#L107 |
When a kernel is specified with a single lengthscale, but evaluated on a design matrix with multiple columns, only the first column is used and no warning is issued. We should let the user know about a dimension mismatch, and either error, or in the case of a single lengthscale bing provided, just replicate it and assume they want an isotropic kernel.
See here for a reprex: https://forum.greta-stats.org/t/gaussian-process-in-greta-matern-covariance/151/17
The text was updated successfully, but these errors were encountered: