Skip to content

Commit d6c46e0

Browse files
committed
chore: format README with recent ruff==0.16.0
1 parent ecdd495 commit d6c46e0

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,18 +296,21 @@ conda install -c conda-forge numpyro
296296

297297
```python
298298
with handlers.seed(rng_seed=0): # random.key(0) is used
299-
x = numpyro.sample('x', dist.Beta(1, 1)) # uses a PRNG key split from random.key(0)
300-
y = numpyro.sample('y', dist.Bernoulli(x)) # uses different PRNG key split from the last one
299+
x = numpyro.sample("x", dist.Beta(1, 1)) # uses a PRNG key split from random.key(0)
300+
y = numpyro.sample(
301+
"y", dist.Bernoulli(x)
302+
) # uses different PRNG key split from the last one
301303
```
302304

303305
, or as a higher order function:
304306

305307
```python
306308
def fn():
307-
x = numpyro.sample('x', dist.Beta(1, 1))
308-
y = numpyro.sample('y', dist.Bernoulli(x))
309+
x = numpyro.sample("x", dist.Beta(1, 1))
310+
y = numpyro.sample("y", dist.Bernoulli(x))
309311
return y
310312

313+
311314
print(handlers.seed(fn, rng_seed=0)())
312315
```
313316

0 commit comments

Comments
 (0)