Skip to content

Instantly share code, notes, and snippets.

@AustinRochford
Last active May 5, 2024 23:36
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AustinRochford/461c74db80833fdf4287ba91ee136b8f to your computer and use it in GitHub Desktop.
Save AustinRochford/461c74db80833fdf4287ba91ee136b8f to your computer and use it in GitHub Desktop.
Revisiting Bayesian Survival Analysis in Python with PyMC
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wojla
Copy link

wojla commented Jan 20, 2023

Hi.
Thank you. I gratefully appreciate the effort.
Having identical env after triggering the 23th cell I have TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Bugtrace connects it to numba. I have numba==0.56.4. Please attach the numba version you've used.

@AustinRochford
Copy link
Author

AustinRochford commented Jan 20, 2023

Thanks for the kind words @wojla

> conda list | grep numba
numba                     0.56.4                   pypi_0    pypi

@wojla
Copy link

wojla commented Jan 21, 2023

Thank you.
The issue is within nutpie.
I used a standard NUTS sampling form pymc
Instead:

trace = nutpie.sample(
    nutpie.compile_pymc_model(model),
    seed=SEED
)

I called:

with model:
    trace = pm.sample()

It solved all my issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment