How to make a 2D Gaussian Process using GPML (Matlab) for regression?

后端 未结 1 545
梦谈多话
梦谈多话 2021-01-13 17:29

I have an Nx2 input matrix called X. I also have the output values Y which is a vector Nx1. I create some data to test as

1条回答
  •  时光说笑
    2021-01-13 17:47

    You're using it wrong. Your z variable should be given by [L1(:),L2(:)]. Then what you should plot is:

    surf(L1,L2,reshape(ymu,size(L1)));
    

    0 讨论(0)
提交回复
热议问题