Skip to content

Commit 33735e2

Browse files
committed
Reorder numpyro imports and device count setup
1 parent d668cf4 commit 33735e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lectures/ar1_turningpts.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,24 @@ import matplotlib.pyplot as plt
4949
import seaborn as sns
5050
from typing import NamedTuple
5151
52+
# numpyro
53+
import numpyro
54+
import numpyro.distributions as dist
55+
from numpyro.infer import MCMC, NUTS
56+
numpyro.set_host_device_count(4)
57+
5258
# jax
5359
import jax
5460
import jax.random as random
5561
import jax.numpy as jnp
5662
from jax import lax
5763
58-
# numpyro
59-
import numpyro
60-
import numpyro.distributions as dist
61-
from numpyro.infer import MCMC, NUTS
62-
6364
# arviz
6465
import arviz as az
6566
6667
sns.set_style('white')
6768
colors = sns.color_palette()
6869
key = random.PRNGKey(0)
69-
numpyro.set_host_device_count(4)
7070
```
7171

7272
## A Univariate First-Order Autoregressive Process

0 commit comments

Comments
 (0)