Skip to main content

A Robust EM Clustering Algorithm for Gaussian Mixture Models

Description

Python implementation of Robust EM Clustering for Gaussian Mixture Models[1]. (Click here to view the paper for more detail.)


  • robustgmm.robustgmm

    Scikit-learn API style for Robust GMM

  • robustgmm.generator

    Generator for synthetic data from mixture of gaussian.


For more detail to use, see the example below or paper_example.py

  • Reference

    MS Yang, A robust EM clustering algorithm for gaussian mixture models, Pattern Recognit., 45 (2012), pp. 3950-3961


Install

  1. Install from PyPI

    pip install robustgmm
    
  2. Install from Github

    pip install git+https://github.com/HongJea-Park/robust_EM_for_gmm.git
    

Example

All examples are conducted to compare with the experimental results of the paper.

# For more detail, refer ./test/paper_example.py
import numpy as np

from robustgmm import RobustGMM
from robustgmm import Generator_Multivariate_Normal


# Generate data from 2 multivariate normal distribution with fixed random seed
np.random.seed(0)
real_means = np.array([[.0, .0], [20, .0]])
real_covs = np.array([[[1, .0], [.0, 1]],
                      [[9, .0], [.0, 9]]])
mix_prob = np.array([.5, .5])
generator = Generator_Multivariate_Normal(means=real_means,
                                          covs=real_covs,
                                          mix_prob=mix_prob)
X = generator.get_sample(800)

# GMM using robust EM Algorithm
rgmm = RobustGMM()
rgmm.fit(X)

Figures for each examples in paper

  1. Example 1

    example1-1 example1-2

  2. Example 2

    example2-1-1 example2-1-2 example2-2-1 example2-2-2

  3. Example 3

    example3-1 example3-2

  4. Example 4

    example4

  5. Example 5

    example5-1 example5-2

  6. Example 6

    example6-1 example6-2

  7. Example 7

    example7

  8. Computational time cost

    timecost

Metadata

Release files for robustgmm 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robustgmm 1.0.2
File Size Uploaded Provenance Actions
robustgmm-1.0.2.tar.gz 6.2 kB Without provenance Details for robustgmm-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for robustgmm 1.0.2
File Interpreter ABI Platform Actions
robustgmm-1.0.2-py3-none-any.whl Python 3 none any Details for robustgmm-1.0.2-py3-none-any.whl

Total release size: 12.0 kB

Release files / robustgmm-1.0.2.tar.gz

Download URL robustgmm-1.0.2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2f80e5f93a417b6af0549cf53b35ebfac6331532f24705d09c4f208ded97f7a9
BLAKE2b-256 checksum
How to use checksums
b82f22020d1fa5e387f72f9d6b997730f4436981f2f9308f5b0429aebb65da82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release files / robustgmm-1.0.2-py3-none-any.whl

Download URL robustgmm-1.0.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0f1cdcf76ec1c83361cf0f901278dffe44a3b1153db5a58920047a5b4b02557
BLAKE2b-256 checksum
How to use checksums
9ac9cd0448d26871728da148b06af02be23bac6801db96fd9f76271b6ef50710
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Security for robustgmm 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page