Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heteroscedastic model example fails #130

Open
axsk opened this issue Sep 21, 2023 · 1 comment
Open

Heteroscedastic model example fails #130

axsk opened this issue Sep 21, 2023 · 1 comment

Comments

@axsk
Copy link

axsk commented Sep 21, 2023

The Heteroscedastic model from the documentation fails for me on Julia 1.9.3, supposedly with some AD problem (Zygote version 0.6.64):

julia> train!(model, 100);
[ Info: Starting training Variational Gaussian Process with a Gaussian likelihood with heteroscedastic noise infered by Analytic Variational Inference  with 200 samples, 1 features and 2 latent GPs
ERROR: MethodError: objects of type AugmentedGaussianProcesses.GPPrior{TransformedKernel{ScaledKernel{SqExponentialKernel{Distances.Euclidean}, Float64}, ScaleTransform{Float64}}, ConstantMean{Float64, ADAM{Float64}}} are not callable
Stacktrace:
  [1] macro expansion
    @ ~/.julia/packages/Zygote/4SSHS/src/compiler/interface2.jl:101 [inlined]
  [2] _pullback(ctx::Zygote.Context{false}, f::AugmentedGaussianProcesses.GPPrior{TransformedKernel{ScaledKernel{SqExponentialKernel{Distances.Euclidean}, Float64}, ScaleTransform{Float64}}, ConstantMean{Float64, ADAM{Float64}}}, args::Float64)
    @ Zygote ~/.julia/packages/Zygote/4SSHS/src/compiler/interface2.jl:101
  [3] rrule_via_ad(::Zygote.ZygoteRuleConfig{Zygote.Context{false}}, ::AugmentedGaussianProcesses.GPPrior{TransformedKernel{ScaledKernel{SqExponentialKernel{Distances.Euclidean}, Float64}, ScaleTransform{Float64}}, ConstantMean{Float64, ADAM{Float64}}}, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Zygote ~/.julia/packages/Zygote/4SSHS/src/compiler/chainrules.jl:260
  [4] rrule_via_ad(::Zygote.ZygoteRuleConfig{Zygote.Context{false}}, ::AugmentedGaussianProcesses.GPPrior{TransformedKernel{ScaledKernel{SqExponentialKernel{Distances.Euclidean}, Float64}, ScaleTransform{Float64}}, ConstantMean{Float64, ADAM{Float64}}}, ::Vararg{Any})
@theogf
Copy link
Owner

theogf commented Sep 24, 2023

Hey sorry for the late answer, was in vacation!
This package is not maintained in favor in https://github.com/JuliaGaussianProcesses/AugmentedGPLikelihoods.jl.

Unfortunately the heteroscedastic model is not merged in yet you could still try the branch though (and I will try to refresh the pacakge a bit more)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants