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

Possible error in GPclust plot routine #19

Open
wayneking517 opened this issue May 4, 2022 · 0 comments
Open

Possible error in GPclust plot routine #19

wayneking517 opened this issue May 4, 2022 · 0 comments

Comments

@wayneking517
Copy link

Here is the code snippet that plots the error on the model prediction. Is the use of YY_var[:, 0] correct?

plt.fill_between(XX[:,0],

   YY_mu[:, 0] - 2 * np.sqrt(YY_var[:, 0]),
   YY_mu[:, 0] + 2 * np.sqrt(YY_var[:, 0]),
   alpha=0.1,
   facecolor=col)

If not, YY_var[:, 0],needs to be replaced with the elements of the diagonal of the matrix. Is that correct?

Maybe numpy.diagonal(YY_var)?

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

1 participant