Skip to content

Commit 0e5b58e

Browse files
committed
Replace deprecated testval with initval in weibull_aft notebook
1 parent fc03395 commit 0e5b58e

File tree

2 files changed

+109
-175
lines changed

2 files changed

+109
-175
lines changed

examples/survival_analysis/weibull_aft.ipynb

Lines changed: 106 additions & 172 deletions
Large diffs are not rendered by default.

examples/survival_analysis/weibull_aft.myst.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ jupytext:
55
format_name: myst
66
format_version: 0.13
77
kernelspec:
8-
display_name: pymc
8+
display_name: pymc-examples
99
language: python
10-
name: python3
10+
name: pymc-examples
1111
---
1212

1313
(weibull_aft)=
@@ -121,7 +121,7 @@ For more information, see [this Stan example model](https://github.com/stan-dev/
121121
```{code-cell} ipython3
122122
with pm.Model() as model_2:
123123
alpha = pm.Normal("alpha", mu=0, sigma=10)
124-
r = pm.Gamma("r", alpha=1, beta=0.001, testval=0.25)
124+
r = pm.Gamma("r", alpha=1, beta=0.001, initval=0.25)
125125
beta = pm.Deterministic("beta", pt.exp(-alpha / r))
126126
127127
y_obs = pm.Weibull("y_obs", alpha=r, beta=beta, observed=y[~censored])

0 commit comments

Comments
 (0)