Skip to content

Commit e5d8178

Browse files
committed
Pushing the docs to dev/ for branch: main, commit c22fc632fe365d0212acd188b99b45c79e3a5902
1 parent b2fb6aa commit e5d8178

File tree

1,362 files changed

+4582
-4601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,362 files changed

+4582
-4601
lines changed
Binary file not shown.
Binary file not shown.

dev/_downloads/b49810e68af99a01e25ba2dfc951b687/plot_train_error_vs_test_error.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"outputs": [],
8282
"source": [
83-
"import matplotlib.pyplot as plt\n\nplt.subplot(2, 1, 1)\nplt.semilogx(alphas, train_errors, label=\"Train\")\nplt.semilogx(alphas, test_errors, label=\"Test\")\nplt.vlines(\n alpha_optim,\n plt.ylim()[0],\n np.max(test_errors),\n color=\"k\",\n linewidth=3,\n label=\"Optimum on test\",\n)\nplt.legend(loc=\"lower left\")\nplt.ylim([0, 1.2])\nplt.xlabel(\"Regularization parameter\")\nplt.ylabel(\"Performance\")\n\n# Show estimated coef_ vs true coef\nplt.subplot(2, 1, 2)\nplt.plot(coef, label=\"True coef\")\nplt.plot(coef_, label=\"Estimated coef\")\nplt.legend()\nplt.subplots_adjust(0.09, 0.04, 0.94, 0.94, 0.26, 0.26)\nplt.show()"
83+
"import matplotlib.pyplot as plt\n\nplt.subplot(2, 1, 1)\nplt.semilogx(alphas, train_errors, label=\"Train\")\nplt.semilogx(alphas, test_errors, label=\"Test\")\nplt.vlines(\n alpha_optim,\n plt.ylim()[0],\n np.max(test_errors),\n color=\"k\",\n linewidth=3,\n label=\"Optimum on test\",\n)\nplt.legend(loc=\"lower right\")\nplt.ylim([0, 1.2])\nplt.xlabel(\"Regularization parameter\")\nplt.ylabel(\"Performance\")\n\n# Show estimated coef_ vs true coef\nplt.subplot(2, 1, 2)\nplt.plot(coef, label=\"True coef\")\nplt.plot(coef_, label=\"Estimated coef\")\nplt.legend()\nplt.subplots_adjust(0.09, 0.04, 0.94, 0.94, 0.26, 0.26)\nplt.show()"
8484
]
8585
}
8686
],

dev/_downloads/dcb776e3eb7cce048909ddcd70100917/plot_train_error_vs_test_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
linewidth=3,
7474
label="Optimum on test",
7575
)
76-
plt.legend(loc="lower left")
76+
plt.legend(loc="lower right")
7777
plt.ylim([0, 1.2])
7878
plt.xlabel("Regularization parameter")
7979
plt.ylabel("Performance")

dev/_downloads/scikit-learn-docs.zip

10.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)