8000 DOC Ensure All Attributes are Documented: OAS: location_ added (#17163) · InterferencePattern/scikit-learn@4c59a5f · GitHub
[go: up one dir, main page]

Skip to content

Commit 8000 4c59a5f

Browse files
hhnnhhadrinjalali
authored andcommitted
DOC Ensure All Attributes are Documented: OAS: location_ added (scikit-learn#17163)
1 parent 3e36aa0 commit 4c59a5f

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

sklearn/covariance/_shrunk_covariance.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ class ShrunkCovariance(EmpiricalCovariance):
8282
8383
Attributes
8484
----------
85-
location_ : ndarray of shape (n_features,)
86-
Estimated location, i.e. the estimated mean.
87-
8885
covariance_ : ndarray of shape (n_features, n_features)
8986
Estimated covariance matrix
9087
88+
location_ : ndarray of shape (n_features,)
89+
Estimated location, i.e. the estimated mean.
90+
9191
precision_ : ndarray of shape (n_features, n_features)
9292
Estimated pseudo inverse matrix.
9393
(stored only if store_precision is True)
@@ -344,12 +344,12 @@ class LedoitWolf(EmpiricalCovariance):
344344
345345
Attributes
346346
----------
347-
location_ : ndarray of shape (n_features,)
348-
Estimated location, i.e. the estimated mean.
349-
350347
covariance_ : ndarray of shape (n_features, n_features)
351348
Estimated covariance matrix.
352349
350+
location_ : ndarray of shape (n_features,)
351+
Estimated location, i.e. the estimated mean.
352+
353353
precision_ : ndarray of shape (n_features, n_features)
354354
Estimated pseudo inverse matrix.
355355
(stored only if store_precision is True)
@@ -526,6 +526,9 @@ class OAS(EmpiricalCovariance):
526526
covariance_ : ndarray of shape (n_features, n_features)
527527
Estimated covariance matrix.
528528
529+
location_ : ndarray of shape (n_features,)
530+
Estimated location, i.e. the estimated mean.
531+
529532
precision_ : ndarray of shape (n_features, n_features)
530533
Estimated pseudo inverse matrix.
531534
(stored only if store_precision is True)

sklearn/tests/test_docstring_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def test_fit_docstring_attributes(name, Estimator):
239239
'MiniBatchKMeans', 'MLPClassifier', 'MLPRegressor',
240240
'MultiTaskElasticNet', 'MultiTaskElasticNetCV',
241241
'MultiTaskLasso', 'MultiTaskLassoCV', 'NearestNeighbors',
242-
'NuSVR', 'OAS', 'OneClassSVM', 'OrthogonalMatchingPursuit',
242+
'NuSVR', 'OneClassSVM', 'OrthogonalMatchingPursuit',
243243
'PLSCanonical', 'PLSRegression', 'PLSSVD',
244244
'PassiveAggressiveClassifier', 'Perceptron', 'RBFSampler',
245245
'RadiusNeighborsClassifier', 'RadiusNeighborsRegressor',

0 commit comments

Comments
 (0)
0