-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
Added info and links to mixture examples for the GaussianMixture and BayesianGaussianMixture classes #30420
base: main
Are you sure you want to change the base?
Added info and links to mixture examples for the GaussianMixture and BayesianGaussianMixture classes #30420
Conversation
❌ Linting issuesThis PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling You can see the details of the linting issues under the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR @janeBrusilovsky! I have a few suggestions.
sklearn/mixture/_bayesian_mixture.py
Outdated
For examples on how to implement the class model, please refer to: | ||
:ref:`sphx_glr_auto_examples_mixture_plot_concentration_prior.py` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to phrase it as:
"For a detailed example of how the weight_concentration_prior_type
parameter influences the model's behaviour, see <example_link>."
sklearn/mixture/_gaussian_mixture.py
Outdated
For examples on different methods of initialization, refer to: | ||
:ref:`sphx_glr_auto_examples_mixture_plot_gmm_init.py` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"For a detailed example of how the init_params
parameter impacts the model's convergence behaviour, see <example_link>."
sklearn/mixture/_gaussian_mixture.py
Outdated
For examples on model selection with Gassian Mixture, refer to: | ||
:ref:`sphx_glr_auto_examples_mixture_plot_gmm_selection.py` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"For a detailed example of how the n_components
and covariance_type
parameters influence the model's performance, see <example_link>."
sklearn/mixture/_gaussian_mixture.py
Outdated
For example covariances types for Gaussian mixture models, see: | ||
:ref:`sphx_glr_auto_examples_mixture_plot_gmm_covariances.py` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"For a detailed example of how the covariance_type
parameter impacts the model's performance, see <example_link>."
I've updated the wording to match the suggestions. Thanks for the feedback! |
Hi, @janeBrusilovsky! Now you have to fix the linting issue. Have you installed
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates, @janeBrusilovsky! In addition to @StefanieSenger's comment, you can click on details
under ci/circleci: lint
in the code checks to view the error messages.
@@ -89,6 +89,10 @@ class BayesianGaussianMixture(BaseMixture): | |||
|
|||
Read more in the :ref:`User Guide <bgmm>`. | |||
|
|||
For a detailed example of how the weight_concentration_prior_type parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a detailed example of how the weight_concentration_prior_type parameter | |
For a detailed example of how the `weight_concentration_prior_type` parameter |
@@ -514,6 +514,18 @@ class GaussianMixture(BaseMixture): | |||
|
|||
Read more in the :ref:`User Guide <gmm>`. | |||
|
|||
For a detailed example of how the init_params parameter impacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a detailed example of how the init_params parameter impacts | |
For a detailed example of how the `init_params` parameter impacts |
For a detailed example of how the n_components and covariance_type | ||
parameters influence the model's performance, refer to: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a detailed example of how the n_components and covariance_type | |
parameters influence the model's performance, refer to: | |
For a detailed example of how the `n_components` and `covariance_type` | |
parameters influence the model's performance, refer to: |
parameters influence the model's performance, refer to: | ||
:ref:`sphx_glr_auto_examples_mixture_plot_gmm_selection.py` | ||
|
||
For a detailed example of how the covariance_type parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a detailed example of how the covariance_type parameter | |
For a detailed example of how the `covariance_type` parameter |
Reference Issues/PRs
This PR contributes towards issue #26927: Add links to examples from the docstrings and user guides. https://github.com/scikit-learn/scikit-learn/issues/26927
What does this implement/fix? Explain your changes.
This PR adds information and example links to the class GaussianMixture in sklearn/mixture/_gaussian_mixture.py from:
This PR also adds information and example links to the class BayesianGaussianMixture in sklearn/mixture/_bayesian_mixture.py from examples/mixture/plot_concentration_prior.py.
Any other comments?
Files modified: