Closed juliebuard closed 4 years ago
Hi @juliebuard, I haven't this type of error before. Do you also get the same error for 1-dimensional GPs? If the issue is only with the 2-dimensional GP, then for a quick workaround you could directly use the Plots.jl package (our plotting functions are essentially calling this package).
using Plots
xmin, xmax = (minimum(gp.x[1,:]), maximum(gp.x[1,:])); ymin, ymax = (minimum(gp.x[2,:]), maximum(gp.x[2,:])); x = range(xmin, stop=xmax, length=50); y = range(ymin, stop=ymax, length=50); xgrid = repeat(x', 50, 1); ygrid = repeat(y, 1, 50); μ, Σ = predict_f(gp,[vec(xgrid)';vec(ygrid)']) zgrid = reshape(μ,50,50); p1 = contour(x, y, zgrid); plot(p1)
Thanks! I have indeed used this week this source code from the function itself to be able to extract what I needed to deal with bigger dimension.
Hi, when trying to plot a gp, I am getting the below error on julia 1.3: