geosnap.analyze.analytics.gaussian_mixture¶
-
geosnap.analyze.analytics.
gaussian_mixture
(X, n_clusters=5, covariance_type='full', best_model=False, max_clusters=10, random_state=None, **kwargs)[source]¶ Clustering with Gaussian Mixture Model
- Parameters
- Xarray-like
n x k attribute data
- n_clustersint, optional, default: 5
The number of clusters to form.
- covariance_type: str, optional, default: “full”“
The covariance parameter passed to scikit-learn’s GaussianMixture algorithm
- best_model: bool, optional, default: False
Option for finding endogenous K according to Bayesian Information Criterion
- max_clusters: int, optional, default:10
The max number of clusters to test if using best_model option
- random_state: int, optional, default: None
The seed used to generate replicable results
- Returns
- model: sklearn GaussianMixture instance