Skip to content

Commit 2dacf58

Browse files
committed
fix issues with mix_model
1 parent b3a2f89 commit 2dacf58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/mix_model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def plot_π_seq(α, π1=0.2, π2=0.8, T=200):
455455
# plot
456456
fig, ax1 = plt.subplots()
457457
for i in range(2):
458-
ax1.plot(range(T+1), π_seq_mixed[i, :], label=fr"$\pi_0$={π_seq_mixed[i, 0]}")
458+
ax1.plot(range(T+1), π_seq_mixed[i, :], label=rf"$\pi_0$={π_seq_mixed[i, 0]}")
459459
460460
ax1.plot(np.nan, np.nan, '--', color='b', label='Log likelihood ratio process')
461461
ax1.set_ylabel("$\pi_t$")
@@ -720,7 +720,7 @@ for i in range(len(sizes)):
720720
)
721721
ax.set_title(r'$\pi_t(\\alpha)$ as $t$ increases')
722722
ax.legend()
723-
ax.set_xlabel(r'$\\alpha$')
723+
ax.set_xlabel('$\\alpha$')
724724
plt.show()
725725
```
726726

0 commit comments

Comments
 (0)