Skip to content

Commit 0a07c7b

Browse files
Jonathan DekermanjianJonathan Dekermanjian
authored andcommitted
put back seeds for sampling data observations
1 parent 79d24fa commit 0a07c7b

File tree

2 files changed

+91
-85
lines changed

2 files changed

+91
-85
lines changed

examples/survival_analysis/weibull_aft.ipynb

Lines changed: 87 additions & 84 deletions
Large diffs are not rendered by default.

examples/survival_analysis/weibull_aft.myst.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ import statsmodels.api as sm
4242

4343
```{code-cell} ipython3
4444
%config InlineBackend.figure_format = 'retina'
45-
# Set a seed for reproducibility of results
45+
# These seeds are for sampling data observations
46+
RANDOM_SEED = 8927
47+
np.random.seed(RANDOM_SEED)
48+
# Set a seed for reproducibility of posterior results
4649
seed: int = sum(map(ord, "aft_weibull"))
4750
rng: np.random.Generator = np.random.default_rng(seed=seed)
4851
az.style.use("arviz-darkgrid")

0 commit comments

Comments
 (0)