JuliaGaussianProcesses / Stheno.jl

Probabilistic Programming with Gaussian processes in Julia
Other
338 stars 26 forks source link

Tutorial crashes in optimization #234

Closed anhi closed 2 years ago

anhi commented 2 years ago

Hi,

using a fresh julia environment, the tutorial "Fit a GP with BFGS in 2 minutes" crashes with the error message:

ERROR: MethodError: objects of type Tuple{typeof(+), Stheno.DerivedGP{Tuple{typeof(), Float64, Stheno.DerivedGP{Tuple{typeof(∘), Stheno.AtomicGP{GP{AbstractGPs.ZeroMean{Float64}, SqExponentialKernel{Distances.Euclidean}}}, Stheno.Stretch{Float64}}}}}, Stheno.DerivedGP{Tuple{typeof(), Float64, Stheno.DerivedGP{Tuple{typeof(∘), Stheno.AtomicGP{GP{AbstractGPs.ZeroMean{Float64}, SqExponentialKernel{Distances.Euclidean}}}, Stheno.Stretch{Float64}}}}}} are not callable

willtebbutt commented 2 years ago

Thanks for raising this issue. Unfortunately I'm not able to reproduce your problem locally. I ran the example from scratch in a clean environment, and wound up with the following package versions:

  [99985d1d] AbstractGPs v0.5.13
  [429524aa] Optim v1.7.0
  [2412ca09] ParameterHandling v0.4.2
  [91a5bcdd] Plots v1.29.0
  [8188c328] Stheno v0.8.1
  [e88e6eb3] Zygote v0.6.40

Could you please provide the precise versions of packages that you've wound up with using Pkg.status()?

anhi commented 2 years ago

Thank you for checking! It seems to have been a problem of my julia installation. Starting with a fresh install and a fresh environment instead of just a fresh environment seems to have solved the problem.