Skip to content

Commit 0450819

Browse files
committed
Pushing the docs for revision for branch: master, commit eaaf2aea237ba902b8235cf1698c71b95fecf02a
1 parent 4cfba18 commit 0450819

File tree

842 files changed

+2818
-2792
lines changed

Some content is hidden

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

842 files changed

+2818
-2792
lines changed

dev/_downloads/plot_ridge_path.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@
1212
coefficient vector, and this is displayed as a function of the
1313
regularization parameter.
1414
15+
This example also shows the usefulness of applying Ridge regression
16+
to highly ill-conditioned matrices. For such matrices, a slight
17+
change in the target variable can cause huge variances in the
18+
calculated weights. In such cases, it is useful to set a certain
19+
regularization (alpha) to reduce this variation (noise).
20+
21+
When alpha is very large, the regularization effect dominates the
22+
squared loss function and the coefficients tend to zero.
1523
At the end of the path, as alpha tends toward zero
1624
and the solution tends towards the ordinary least squares, coefficients
17-
exhibit big oscillations.
25+
exhibit big oscillations. In practise it is necessary to tune alpha
26+
in such a way that a balance is maintained between both.
1827
"""
1928

2029
# Author: Fabian Pedregosa -- <[email protected]>
-8 Bytes
-8 Bytes
-272 Bytes
-272 Bytes
-61 Bytes
-61 Bytes
240 Bytes
240 Bytes
252 Bytes

0 commit comments

Comments
 (0)