Increase plot's font sizes
Browse files
app.py
CHANGED
|
@@ -30,15 +30,19 @@ def get_plots(min_alpha, max_alpha):
|
|
| 30 |
|
| 31 |
ax[0].plot(alphas, coefs)
|
| 32 |
ax[0].set_xscale("log")
|
| 33 |
-
ax[0].set_xlabel("alpha")
|
| 34 |
-
ax[0].set_ylabel("weights")
|
| 35 |
-
ax[0].set_title(
|
|
|
|
|
|
|
| 36 |
|
| 37 |
ax[1].plot(alphas, errors)
|
| 38 |
ax[1].set_xscale("log")
|
| 39 |
-
ax[1].set_xlabel("alpha")
|
| 40 |
-
ax[1].set_ylabel("error")
|
| 41 |
-
ax[1].set_title(
|
|
|
|
|
|
|
| 42 |
fig.tight_layout()
|
| 43 |
|
| 44 |
plotted_alphas_text = (
|
|
|
|
| 30 |
|
| 31 |
ax[0].plot(alphas, coefs)
|
| 32 |
ax[0].set_xscale("log")
|
| 33 |
+
ax[0].set_xlabel("alpha", fontsize=16)
|
| 34 |
+
ax[0].set_ylabel("weights", fontsize=16)
|
| 35 |
+
ax[0].set_title(
|
| 36 |
+
"Ridge coefficients as a function of the regularization", fontsize=20
|
| 37 |
+
)
|
| 38 |
|
| 39 |
ax[1].plot(alphas, errors)
|
| 40 |
ax[1].set_xscale("log")
|
| 41 |
+
ax[1].set_xlabel("alpha", fontsize=16)
|
| 42 |
+
ax[1].set_ylabel("error", fontsize=16)
|
| 43 |
+
ax[1].set_title(
|
| 44 |
+
"Coefficient error as a function of the regularization", fontsize=20
|
| 45 |
+
)
|
| 46 |
fig.tight_layout()
|
| 47 |
|
| 48 |
plotted_alphas_text = (
|