Skip to main content

Coreset generation for k-Means and (Bayesian) Gaussian mixture models

Project description

Coresets

This library contains the implementation coreset generation for k-Means and (Bayesian) Gaussian mixture models. It also offers the extended versions of the corresponding algorithms that support weighted data sets.

To get started, take a look at:

examples/intro.ipynb

(this is a fork of https://github.com/zalanborsos/coresets, intended to fix installation issues + publish to pypi)

Setup

  1. Install poetry.
poetry build
poetry install

Running tests

In project root run:

poetry run pytest

References

The implementation of the library is based on the following works:

Bachem, O., Lucic, M., & Krause, A. (2017). Practical coreset constructions for machine learning. arXiv preprint arXiv:1703.06476.

Bachem, O., Lucic, M., & Krause, A. (2017). Scalable and distributed clustering via lightweight coresets. arXiv preprint arXiv:1702.08248.

Lucic, M., Faulkner, M., Krause, A., & Feldman, D. (2018). Training Gaussian Mixture Models at Scale via Coresets. Journal of Machine Learning Research, 18, Art-No.

Borsos, Z., Bachem, O., & Krause, A. Variational Inference for DPGMM with Coresets. (2017). Advances in Approximate Bayesian Inference

Publishing a new version

rm -rf build dist
poetry build
rename -v 's/manylinux_2_\d+/manylinux1/' dist/*.whl  # Rename the wheel to manylinux1 as we don't use advanced LIBC feats
poetry publish

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

coresets-0.2.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

coresets-0.2.0-cp38-cp38-manylinux1_x86_64.whl (137.8 kB view details)

Uploaded CPython 3.8

File details

Details for the file coresets-0.2.0.tar.gz.

File metadata

  • Download URL: coresets-0.2.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-1036-aws

File hashes

Hashes for coresets-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4a57810a25f8922df261af6c072c4f8c1b0d3209b379a261ebc222248638e869
MD5 995190074c301a04c7a0438fe8926505
BLAKE2b-256 d4dfc7fef2daddfbc3830333d27517d6790b5dc6e9a8096d1aa14cc6e23f02cd

See more details on using hashes here.

File details

Details for the file coresets-0.2.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for coresets-0.2.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fde4907e2a1e0a001af750a35b9721bc9e275a9481565b1cfa57dd32214f0acc
MD5 c9da0e5de5c54918ba130ee1d323cec5
BLAKE2b-256 afaba71665f330d03864f37999ab3273f6192872a77d0e824d7c852f99b32997

See more details on using hashes here.

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