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.

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.

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.

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.

PrashantSaikia commented Nov 23, 2018

How do you validate the predictions and test their accuracy?

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