Skip to main content

Automatic Gaussian Mixture Modeling in Python

Project description

AutoGMM

Automatic Gaussian Mixture Modeling in Python.

Install

pip install autogmm

Quick start

from autogmm import AutoGMM
from sklearn.datasets import make_blobs

X, _ = make_blobs(
                 n_samples=1000,
                 centers=4,
                 cluster_std=1.2,
                 random_state=0
)

labels = AutoGMM(
                 min_components=1,
                 max_components=10, # unknown K
                 criterion="bic",
                 random_state=0
).fit_predict(X)

Features

  • Initializations: KMeans, Ward–Euclidean, Ward–Mahalanobis

  • EM with eigenvalue flooring and covariance constraints (spherical, diag, tied, full)

  • Model selection via BIC/AIC (unknown K)

  • Optional spectral front-end (ASE/LSE) for nonconvex structure

  • Parallel evaluation, clean API, reproducible scripts

Documentation

Legacy & Independence

AutoGMM was originally developed in the graspologic library. As of v1.0, it is a standalone package with no dependency on graspologic.

Contributing

Issues and PRs are welcome. See CONTRIBUTING.md.

Citation

@software{autogmm,
  title   = {AutoGMM: Automatic Gaussian Mixture Modeling in Python},
  author  = {Liu, Tingshan and Athey, Thomas L. and Pedigo, Benjamin D. and Vogelstein, Joshua T.},
  year    = {2025},
  url     = {https://github.com/neurodata/autogmm}
}

License

BSD 3-Clause License. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autogmm-0.1.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autogmm-0.1.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file autogmm-0.1.0.tar.gz.

File metadata

  • Download URL: autogmm-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for autogmm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0586b741ea30a71281004205e552fea78a752e3fd85420844f37870ecd55d3bf
MD5 c93aac0691094bf5526bf4b7a3e7b9ac
BLAKE2b-256 19e9a518e84de84435bbae7e1de9ad85b5d5e8d30bad50e45b9d303938445bf0

See more details on using hashes here.

Provenance

The following attestation bundles were made for autogmm-0.1.0.tar.gz:

Publisher: release.yml on neurodata/autogmm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autogmm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: autogmm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for autogmm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c58f4fa256fca3ebee799e94cfa4375c417724290581179c7963837caebd5697
MD5 4fbdfb913ae17684779a7eb7cd59152c
BLAKE2b-256 5bb6d8e92c04e20321ef501286cb0d2473abb0d271587e396e0f6d38d1c1973a

See more details on using hashes here.

Provenance

The following attestation bundles were made for autogmm-0.1.0-py3-none-any.whl:

Publisher: release.yml on neurodata/autogmm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page