Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bayesian Survival Analysis PyMC3 Tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@markdickson

This comment has been minimized.

Copy link

markdickson commented Apr 3, 2016

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

This comment has been minimized.

Copy link

joshcutler commented Apr 7, 2016

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

@shirishr

This comment has been minimized.

Copy link

shirishr commented Jul 31, 2018

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

@PrashantSaikia

This comment has been minimized.

Copy link

PrashantSaikia commented Nov 23, 2018

How do you validate the predictions and test their accuracy?

@AloysiusFekete

This comment has been minimized.

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
You can’t perform that action at this time.