Skip to content
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

Supplying a distance matrix #236

Closed
EvoArt opened this issue Jun 5, 2022 · 2 comments
Closed

Supplying a distance matrix #236

EvoArt opened this issue Jun 5, 2022 · 2 comments

Comments

@EvoArt
Copy link

EvoArt commented Jun 5, 2022

Sorry if I've missed something obvious. Is there a way to supply a distance matrix to Stheno instead of a vector or array of points in Euclidean space?

@willtebbutt
Copy link
Member

Hmmm no, I'm afraid not. It's worth noting that the points don't have to be in Euclidean space though. If you wanted to work with a pre-computed kernel matrix, I think I would just suggest implementing a new Kernel which contains the pre-computed kernel matrix, and then indexing into it via inputs. Something like

k = MyKernel(kernel_matrix)
f = GP(k)
x = 1:10
f(x)

and implementing KernelFunctions.kernelmatrix etc such that this works properly.

@EvoArt
Copy link
Author

EvoArt commented Jun 7, 2022

Thank you! I'll give that a go.

@EvoArt EvoArt closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants