I’m having an issue using MLJ NuSVR model. From the docs this should be working.
NuSVR = @load NuSVR pkg=LIBSVM
model = NuSVR(kernel=LIBSVM.Kernel.RadialBasis)
# SVMRegressor = @load SVMRegressor pkg=MLJScikitLearnInterface
# model = SVMRegressor()
mach = machine(model, X, y)
mach |> fit!
yhat = LIBSVM.predict(mach, Xnew)
I get this error:
MethodError: no method matching predict(::Machine{MLJLIBSVMInterface.NuSVR, true}, ::Vector{Float64})
Closest candidates are:
predict(::LIBSVM.LinearSVC, ::AbstractArray)
@ LIBSVM ~/.julia/packages/LIBSVM/IZl0L/src/ScikitLearnAPI.jl:11
predict(::Union{LIBSVM.AbstractSVC, LIBSVM.AbstractSVR}, ::AbstractArray)
@ LIBSVM ~/.julia/packages/LIBSVM/IZl0L/src/ScikitLearnAPI.jl:6