Skip to content

Commit 463d1e2

Browse files
authored
[mle] Update the String Format (#430)
* update the string format * fix mus
1 parent f4d7a8d commit 463d1e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lectures/mle.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ for μ in [1, 5, 10]:
113113
distribution.append(poisson_pmf(y_i, μ))
114114
ax.plot(y_values,
115115
distribution,
116-
label=f'$\mu$={μ}',
116+
label=fr'$\mu$={μ}',
117117
alpha=0.5,
118118
marker='o',
119119
markersize=8)
120120
121121
ax.grid()
122122
ax.set_xlabel('$y$', fontsize=14)
123-
ax.set_ylabel('$f(y \mid \mu)$', fontsize=14)
123+
ax.set_ylabel(r'$f(y \mid \mu)$', fontsize=14)
124124
ax.axis(xmin=0, ymin=0)
125125
ax.legend(fontsize=14)
126126
@@ -211,14 +211,14 @@ for X in datasets:
211211
distribution.append(poisson_pmf(y_i, μ))
212212
ax.plot(y_values,
213213
distribution,
214-
label=f'$\mu_i$={μ:.1}',
214+
label=fr'$\mu_i$={μ:.1}',
215215
marker='o',
216216
markersize=8,
217217
alpha=0.5)
218218
219219
ax.grid()
220220
ax.legend()
221-
ax.set_xlabel('$y \mid x_i$')
221+
ax.set_xlabel(r'$y \mid x_i$')
222222
ax.set_ylabel(r'$f(y \mid x_i; \beta )$')
223223
ax.axis(xmin=0, ymin=0)
224224
plt.show()

0 commit comments

Comments
 (0)