Hi,
This PR fixes a bug in interface code to ScikitLearn.jl. see issue #149 for context.
An alternative solution would be to make the definition of fit! less restrictive as
function fit!(gp::GPE, x::AbstractMatrix, y::AbstractVector)
length(y) == size(x,2) || throw(ArgumentError("Input and output observations must have consistent dimensions."))
gp.x = x
gp.y = y
gp.data = KernelData(gp.kernel, x, x, gp.covstrat)
gp.cK = alloc_cK(gp.covstrat, length(y))
gp.dim, gp.nobs = size(x)
initialise_target!(gp)
end
Hi, This PR fixes a bug in interface code to
ScikitLearn.jl
. see issue #149 for context. An alternative solution would be to make the definition offit!
less restrictive as