Mixture modeling algorithms using the Student's t-distribution
Project description
studenttmixture
Mixtures of multivariate Student's t distributions are widely used for clustering data that may contain outliers, but scipy and scikit-learn do not at present offer classes for fitting Student's t mixture models. This package provides classes for:
- Modeling / clustering a dataset using a finite mixture of multivariate Student's t distributions fit via the EM algorithm. This is analogous to scikit-learn's GaussianMixture.
- Modeling / clustering a dataset using a mixture of multivariate Student's t distributions fit via the variational mean-field approximation. This is analogous to scikit-learn's BayesianGaussianMixture.
- Modeling / clustering an infinite mixture of Student's t-distributions (i.e. a Dirichlet process). In practice, this model is fitted using some small modifications to the mean-field recipe and has some of the same advantages and limitations.
(1) and (2) are currently available; (3) will be available in version 0.0.3.
Unittests for the package are in the tests folder.
Installation
pip install studenttmixture
Note that starting in version 0.0.2.3, this package contains C extensions and is therefore distributed as a source distribution which is automatically compiled on install. Starting with version 0.0.3, once all planned features are implemented, separate binary distributions for each platform will be added to improve ease of installation.
It is unusual but problems with source distribution pip packages that contain C extensions are occasionally observed on Windows, e.g. an error similar to this:
error: Microsoft Visual C++ 14.0 is required.
in the unlikely event you encounter this, I recommend the solution described under this StackOverflow and links.
Finally, if you for whatever reason prefer the pure Python version, install version 0.0.2.2, i.e.:
pip install studenttmixture==0.0.2.2
training for mixture models will run slower but no compilation is required.
Usage
Background
Upcoming in future versions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file studenttmixture-0.0.2.51.tar.gz
.
File metadata
- Download URL: studenttmixture-0.0.2.51.tar.gz
- Upload date:
- Size: 148.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe8d78e12d4128073a9b661afd278c85648a20ae69011ac84a1eeedc54f6df88 |
|
MD5 | 481e455da029ce6f17661afb03ded3ee |
|
BLAKE2b-256 | c5b26ad93e2b796bcfdc0dff472a3f1c299d032d1a7a81d12bab8bfab1602d1d |