Skip to content

Commit 6b64df3

Browse files
committed
Pushing the docs to dev/ for branch: master, commit cb41c52625c7181db357cef6c0fdb30cec52cce2
1 parent 972b4b2 commit 6b64df3

File tree

954 files changed

+2891
-2891
lines changed

Some content is hidden

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

954 files changed

+2891
-2891
lines changed
-5 Bytes
Binary file not shown.
-5 Bytes
Binary file not shown.

dev/_downloads/plot_lasso_lars.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"outputs": [],
2828
"source": [
29-
"print(__doc__)\n\n# Author: Fabian Pedregosa <[email protected]>\n# Alexandre Gramfort <[email protected]>\n# License: BSD 3 clause\n\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfrom sklearn import linear_model\nfrom sklearn import datasets\n\ndiabetes = datasets.load_diabetes()\nX = diabetes.data\ny = diabetes.target\n\nprint(\"Computing regularization path using the LARS ...\")\nalphas, _, coefs = linear_model.lars_path(X, y, method='lasso', verbose=True)\n\nxx = np.sum(np.abs(coefs.T), axis=1)\nxx /= xx[-1]\n\nplt.plot(xx, coefs.T)\nymin, ymax = plt.ylim()\nplt.vlines(xx, ymin, ymax, linestyle='dashed')\nplt.xlabel('|coef| / max|coef|')\nplt.ylabel('Coefficients')\nplt.title('LASSO Path')\nplt.axis('tight')\nplt.show()"
29+
"print(__doc__)\n\n# Author: Fabian Pedregosa <[email protected]>\n# Alexandre Gramfort <[email protected]>\n# License: BSD 3 clause\n\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfrom sklearn import linear_model\nfrom sklearn import datasets\n\ndiabetes = datasets.load_diabetes()\nX = diabetes.data\ny = diabetes.target\n\nprint(\"Computing regularization path using the LARS ...\")\n_, _, coefs = linear_model.lars_path(X, y, method='lasso', verbose=True)\n\nxx = np.sum(np.abs(coefs.T), axis=1)\nxx /= xx[-1]\n\nplt.plot(xx, coefs.T)\nymin, ymax = plt.ylim()\nplt.vlines(xx, ymin, ymax, linestyle='dashed')\nplt.xlabel('|coef| / max|coef|')\nplt.ylabel('Coefficients')\nplt.title('LASSO Path')\nplt.axis('tight')\nplt.show()"
3030
]
3131
}
3232
],

dev/_downloads/plot_lasso_lars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
y = diabetes.target
2828

2929
print("Computing regularization path using the LARS ...")
30-
alphas, _, coefs = linear_model.lars_path(X, y, method='lasso', verbose=True)
30+
_, _, coefs = linear_model.lars_path(X, y, method='lasso', verbose=True)
3131

3232
xx = np.sum(np.abs(coefs.T), axis=1)
3333
xx /= xx[-1]

dev/_downloads/scikit-learn-docs.pdf

5.69 KB
Binary file not shown.

0 commit comments

Comments
 (0)