Skip to content

Commit 9f949f1

Browse files
Update README.md
1 parent d149f08 commit 9f949f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Before inference, we can use simulation-based calibration (SBC, https://arxiv.or
5656
```python
5757
fig = trainer.diagnose_sbc_histograms(plot_args=dict(param_names=[r'$\theta_1$', r'$\theta_2$']))
5858
```
59+
![SBC](https://github.com/stefanradev93/BayesFlow/blob/Future/img/showcase_sbc.png?raw=true)
5960
Amortized inference on new (real or simulated) data is then easy and fast:
6061
```python
6162
# Simulate 200 new data sets and generate 500 posterior draws per data set
@@ -66,10 +67,12 @@ We can then quickly inspect the parameter recoverability of the model
6667
```python
6768
fig = bf.diagnostics.plot_recovery(posterior_draws, new_sims['parameters'])
6869
```
70+
![Recovery](https://github.com/stefanradev93/BayesFlow/blob/Future/img/showcase_recovery.png?raw=true)
6971
or look at single posteriors in relation to the prior:
7072
```python
7173
fig = bf.diagnostics.plot_posterior_2d(posterior_draws[0], prior=generative_model.prior)
7274
```
75+
![Posterior](https://github.com/stefanradev93/BayesFlow/blob/Future/img/showcase_posterior.png?raw=true)
7376

7477
### Further Reading
7578

0 commit comments

Comments
 (0)