Skip to content

Add Doc for GMM Example #30841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sklearn/mixture/_gaussian_mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ class GaussianMixture(BaseMixture):
- 'diag': each component has its own diagonal covariance matrix.
- 'spherical': each component has its own single variance.

For an example of using `covariance_type`, refer to
:ref:`sphx_glr_auto_examples_mixture_plot_gmm_selection.py`.

tol : float, default=1e-3
The convergence threshold. EM iterations will stop when the
lower bound average gain is below this threshold.
Expand Down Expand Up @@ -885,6 +888,9 @@ def bic(self, X):
You can refer to this :ref:`mathematical section <aic_bic>` for more
details regarding the formulation of the BIC used.

For an example of GMM selection using `bic` information criterion,
refer to :ref:`sphx_glr_auto_examples_mixture_plot_gmm_selection.py`.

Parameters
----------
X : array of shape (n_samples, n_dimensions)
Expand Down
Loading