Replace .format with f-strings

main
Aurélien Geron 2021-11-22 10:19:22 +13:00
parent 37abd9c4d5
commit 9733dae04e
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@
" sample_weights /= sample_weights.sum() # normalization step\n",
"\n",
" plot_decision_boundary(svm_clf, X_train, y_train, alpha=0.4)\n",
" plt.title(\"learning_rate = {}\".format(learning_rate))\n",
" plt.title(f\"learning_rate = {learning_rate}\")\n",
" if subplot == 0:\n",
" plt.text(-0.75, -0.95, \"1\", fontsize=16)\n",
" plt.text(-1.05, -0.95, \"2\", fontsize=16)\n",