Skip to content

Instantly share code, notes, and snippets.

@AustinRochford
Last active April 7, 2024 01:30
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save AustinRochford/4c6b07e51a2247d678d6 to your computer and use it in GitHub Desktop.
Save AustinRochford/4c6b07e51a2247d678d6 to your computer and use it in GitHub Desktop.
Bayesian Survival Analysis PyMC3 Tutorial
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.
@markdickson
Copy link

Using Anaconda 2.4.0 and the latest pymc3, there's an error executing cell 18:

pm.traceplot(trace, vars=['beta']);

gives the error


TypeError Traceback (most recent call last)
in ()
----> 1 pm.traceplot(trace, vars=['beta']);

TypeError: traceplot() got an unexpected keyword argument 'vars'

Is this notebook out of date?

@joshcutler
Copy link

@markdickson vars is now varnames. That said I am having issues where all samples of Beta end up being zero.

@shirishr
Copy link

Please see "http://docs.pymc.io/notebooks/survival_analysis.html" for good/updated code

@PrashantSaikia
Copy link

How do you validate the predictions and test their accuracy?

@AloysiusFekete
Copy link

AloysiusFekete commented Jan 9, 2020

Great summary.
I got a "can't pickle fortran objects" error which was unrelated to your notebook. I updated conda and it ran normally.

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