Skip to content

Commit

Permalink
DOC add link to plot_covariance_estimation example in docstrings and …
Browse files Browse the repository at this point in the history
…userguide (#30429)
  • Loading branch information
stefanogaspari authored Jan 2, 2025
1 parent 0d98d14 commit 99d5cd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sklearn/covariance/_shrunk_covariance.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ class LedoitWolf(EmpiricalCovariance):
[0.1616..., 0.8022...]])
>>> cov.location_
array([ 0.0595... , -0.0075...])
See also :ref:`sphx_glr_auto_examples_covariance_plot_covariance_estimation.py`
for a more detailed example.
"""

_parameter_constraints: dict = {
Expand Down Expand Up @@ -780,6 +783,9 @@ class OAS(EmpiricalCovariance):
[-1.2431..., 3.3889...]])
>>> oas.shrinkage_
np.float64(0.0195...)
See also :ref:`sphx_glr_auto_examples_covariance_plot_covariance_estimation.py`
for a more detailed example.
"""

@_fit_context(prefer_skip_nested_validation=True)
Expand Down

0 comments on commit 99d5cd0

Please sign in to comment.