Skip to content

Commit a122ad7

Browse files
authored
DOC Ensures that GaussianMixture passes numpydoc validation (scikit-learn#20949)
1 parent fbd4890 commit a122ad7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

maint_tools/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"FeatureUnion",
1414
"FunctionTransformer",
1515
"GammaRegressor",
16-
"GaussianMixture",
1716
"GaussianProcessRegressor",
1817
"GaussianRandomProjection",
1918
"GridSearchCV",

sklearn/mixture/_gaussian_mixture.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,11 @@ class GaussianMixture(BaseMixture):
610610
611611
.. versionadded:: 1.0
612612
613+
See Also
614+
--------
615+
BayesianGaussianMixture : Gaussian mixture model fit with a variational
616+
inference.
617+
613618
Examples
614619
--------
615620
>>> import numpy as np
@@ -621,11 +626,6 @@ class GaussianMixture(BaseMixture):
621626
[ 1., 2.]])
622627
>>> gm.predict([[0, 0], [12, 3]])
623628
array([1, 0])
624-
625-
See Also
626-
--------
627-
BayesianGaussianMixture : Gaussian mixture model fit with a variational
628-
inference.
629629
"""
630630

631631
def __init__(
@@ -811,6 +811,7 @@ def bic(self, X):
811811
Parameters
812812
----------
813813
X : array of shape (n_samples, n_dimensions)
814+
The input samples.
814815
815816
Returns
816817
-------
@@ -827,6 +828,7 @@ def aic(self, X):
827828
Parameters
828829
----------
829830
X : array of shape (n_samples, n_dimensions)
831+
The input samples.
830832
831833
Returns
832834
-------

0 commit comments

Comments
 (0)