Skip to content

Commit

Permalink
Replace deprecated testval with initval in weibull_aft notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoCorti committed Nov 24, 2024
1 parent fc03395 commit 0e5b58e
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 175 deletions.
278 changes: 106 additions & 172 deletions examples/survival_analysis/weibull_aft.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/survival_analysis/weibull_aft.myst.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jupytext:
format_name: myst
format_version: 0.13
kernelspec:
display_name: pymc
display_name: pymc-examples
language: python
name: python3
name: pymc-examples
---

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

0 comments on commit 0e5b58e

Please sign in to comment.