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

GPCoregionalizedRegression Documention #1099

Open
anthony-meza opened this issue Oct 18, 2024 · 1 comment
Open

GPCoregionalizedRegression Documention #1099

anthony-meza opened this issue Oct 18, 2024 · 1 comment
Assignees

Comments

@anthony-meza
Copy link

I have 3 input dimensions (x, y, time) and 5 outputs. Below is the code I use

num_outputs = n_stations
n_inputs = 2
K1 = GPy.kern.Bias(input_dim=n_inputs)
K2 = GPy.kern.Linear(input_dim=n_inputs)
K3 = GPy.kern.Matern32(input_dim=n_inputs)
lcm_kernel = GPy.util.multioutput.LCM(input_dim=n_inputs,num_outputs=n_stations,kernels_list=[K1,K2,K3], W_rank = 5)


model = GPy.models.GPCoregionalizedRegression(X_list, Y_list, kernel=lcm_kernel)

# Optimize the model
model.optimize(messages=True, max_iters=1000)

X_list and Y_list have a length of num_outputs.

However, the following code does not work:
Y_pred, Y_var = model.predict(X_new, full_cov = True, Y_metadata = {"output_index":[0]})

I cannot make a prediction for one of my outputs (supposedly at index 0). I wasn't able to find anything on the documentation about this.

@MartinBubel
Copy link
Contributor

Hi @anthony-meza
thank you for reporting this issue. I have reproduced it and feel like there must be some issue with matrix shape or missing documentation.
However, I am not that familiar with the backend. I'm a bit busy this week but I'll try to dig into this next week.

@MartinBubel MartinBubel self-assigned this Oct 24, 2024
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