File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def plot_posterior(sample):
198198 axs[0, 1].set_xlabel("ρ")
199199 axs[1, 0].set_ylabel("σ")
200200 axs[1, 1].set_xlabel("σ")
201-
201+
202202 plt.tight_layout()
203203 plt.show()
204204```
@@ -212,7 +212,7 @@ def AR1_model(data):
212212 # Expected value of y in the next period (ρ * y)
213213 yhat = ρ * data[:-1]
214214
215- # Likelihood of the actual realization.
215+ # Likelihood of the actual realization
216216 numpyro.sample('y_obs',
217217 dist.Normal(loc=yhat, scale=σ), obs=data[1:])
218218
@@ -270,7 +270,7 @@ def AR1_model_y0(data):
270270 # Expected value of y in the next period (ρ * y)
271271 yhat = ρ * data[:-1]
272272
273- # Likelihood of the actual realization.
273+ # Likelihood of the actual realization
274274 numpyro.sample('y_obs',
275275 dist.Normal(loc=yhat, scale=σ), obs=data[1:])
276276 numpyro.sample('y0_obs',
You can’t perform that action at this time.
0 commit comments