theogf / AugmentedGaussianProcesses.jl

Gaussian Process package based on data augmentation, sparsity and natural gradients
https://theogf.github.io/AugmentedGaussianProcesses.jl/dev/
Other
134 stars 9 forks source link

Change in API? Tutorial code no longer works #21

Open robertfeldt opened 4 years ago

robertfeldt commented 4 years ago

Has there been a recent change in the API? I tried the tutorial code https://nbviewer.jupyter.org/github/theogf/AugmentedGaussianProcesses.jl/blob/master/examples/Regression%20-%20Gaussian.ipynb on Julia 1.3 and get the error:

ERROR: MethodError: no method matching SVGP(::Array{Float64,2}, ::Array{Float64,1}, ::SqExponentialKernel{Float64,ScaleTransform{Float64}}, ::GaussianLikelihood{Float64}, ::AnalyticVI{Float64}, ::Int64)
Closest candidates are:
  SVGP(::AbstractArray{T1,N} where N, ::AbstractArray{T2,N} where N, ::Union{AbstractArray{#s92,1} where #s92<:AugmentedGaussianProcesses.KernelModule.Kernel, AugmentedGaussianProcesses.KernelModule.Kernel}, ::TLikelihood, ::TInference, ::Int64; verbose, optimizer, atfrequency, mean, IndependentPriors, Zoptimizer, ArrayType) where {T1<:Real, T2, TLikelihood<:Likelihood, TInference<:Inference} at /Users/feldt/.julia/packages/AugmentedGaussianProcesses/FfXUz/src/models/SVGP.jl:68
  SVGP(::Array{T,2}, ::Array{T,1} where T, ::Int64, ::Int64, ::Int64, ::Int64, ::Bool, ::Int64, ::Array{Array{T,2},1}, ::Array{V,1}, ::Array{LinearAlgebra.Symmetric{T,Array{T,2}},1}, ::Array{V,1}, ::Array{LinearAlgebra.Symmetric{T,Array{T,2}},1}, ::Array{PriorMean{T},1}, ::Array{LinearAlgebra.Symmetric{T,Array{T,2}},1}, ::Array{LinearAlgebra.Symmetric{T,Array{T,2}},1}, ::Array{Array{T,2},1}, ::Array{Array{T,2},1}, ::Array{V,1}, ::Array{AugmentedGaussianProcesses.KernelModule.Kernel{T,KT} where KT<:AugmentedGaussianProcesses.KernelModule.KernelType,1}, ::TLikelihood, ::TInference, ::Int64, ::Union{Nothing, Optimizer}, ::Int64, ::Union{Nothing, Optimizer}, ::Bool) where {T<:Real, TLikelihood<:Likelihood{T}, TInference<:Inference, V<:AbstractArray{T,1}} at /Users/feldt/.julia/packages/AugmentedGaussianProcesses/FfXUz/src/models/SVGP.jl:32
Stacktrace:
 [1] top-level scope at ./REPL[17]:3
theogf commented 4 years ago

Hi! Sorry about that I am currently doing a short refactoring and I did update the tutorials but not the package. Doing everything in the wrong order 😅