Skip to content

Possible error in GPclust plot routine #19

@wayneking517

Description

@wayneking517

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions