cambridge-mlg / Covid19

35 stars 3 forks source link

Example does not seem to work #6

Open emfeltham opened 2 years ago

emfeltham commented 2 years ago

Hello,

I don't know whether anyone is working on this anymore, so let me know if not; but, I was trying to follow the basic instructions and cannot seem to make it work. I downloaded the whole project repository, and attempted to execute the following:

using DrWatson
quickactivate(@__DIR__)

using Pkg
Pkg.instantiate()

# using Covid19

I receive the following

  ✗ Covid19
  0 dependencies successfully precompiled in 9 seconds (172 already precompiled, 7 skipped during auto due to previous errors)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

Precompiling the package yields a dependency error.

Best, Eric

torfjelde commented 2 years ago

Ah yes, you're right! Sorry about this.

I just tried doing Pkg.update() instead of Pkg.instantiate() on Julia 1.6 and it seems to work just fine after that :+1:

I'll update the README once I've made sure that it all works nicely.

EDIT: Hmm, strange. The model and everything seems to work, but when I try to run inference using NUTS it ust gets stuck. I need to look into this.

emfeltham commented 2 years ago

Yes, I am having this problem too, the sampler gets stuck:

┌ Warning: The current proposal will be rejected due to numerical error(s).
│   isfinite.((θ, r, ℓπ, ℓκ)) = (true, true, false, true)
└ @ AdvancedHMC ~/.julia/packages/AdvancedHMC/HQHnm/src/hamiltonian.jl:47