Skip to content

Commit fc624f3

Browse files
stefanogasparijeremiedbb
authored andcommitted
DOC add link to plot_covariance_estimation example in docstrings and userguide (#30429)
1 parent 3526652 commit fc624f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sklearn/covariance/_shrunk_covariance.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,9 @@ class LedoitWolf(EmpiricalCovariance):
563563
[0.1616..., 0.8022...]])
564564
>>> cov.location_
565565
array([ 0.0595... , -0.0075...])
566+
567+
See also :ref:`sphx_glr_auto_examples_covariance_plot_covariance_estimation.py`
568+
for a more detailed example.
566569
"""
567570

568571
_parameter_constraints: dict = {
@@ -780,6 +783,9 @@ class OAS(EmpiricalCovariance):
780783
[-1.2431..., 3.3889...]])
781784
>>> oas.shrinkage_
782785
np.float64(0.0195...)
786+
787+
See also :ref:`sphx_glr_auto_examples_covariance_plot_covariance_estimation.py`
788+
for a more detailed example.
783789
"""
784790

785791
@_fit_context(prefer_skip_nested_validation=True)

0 commit comments

Comments
 (0)