Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put back seeds for sampling data observations
Browse files Browse the repository at this point in the history
Jonathan Dekermanjian authored and Jonathan Dekermanjian committed Nov 26, 2024
1 parent 79d24fa commit 0a07c7b
Showing 2 changed files with 91 additions and 85 deletions.
171 changes: 87 additions & 84 deletions examples/survival_analysis/weibull_aft.ipynb

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion examples/survival_analysis/weibull_aft.myst.md
Original file line number Diff line number Diff line change
@@ -42,7 +42,10 @@ import statsmodels.api as sm

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

0 comments on commit 0a07c7b

Please sign in to comment.