Skip to main content

Gaussian Mixtures 2

Single Mixture Density Plot

Overview

gmix2 is a reimplementation of gmix that provides functions for working with univariate Gaussian Mixture distributions similar to dmixnorm of the KScorrect R package. Unlike gmix, gmix2 does not include the code and recipes for implementing conditional density implementation using neural networks. This reduces the number of external dependencies and complexity of the project considerably (e.g., no need for TensorFlow). gmix2 is entirely written in C++ (and provides python bindings), so it is also slightly faster than gmix in most cases, and considerably faster in a a few cases [1]. It also provides a few bug fixes and the plotting function has been improved.

Dependencies

C++

  • A recent C++ compiler (gcc 9.3 is known to work)

  • CMake >= 3.16

  • Python development libraries (for Python.h)

  • Eigen3

Python

Only python3 is supported.

Required

Needed For Plotting

  • scipy

  • pandas

  • plotnine

  • pycairo Matplotlib may complain if this is not installed separately.

  • PyQt5 You may need to install a rending package for interactive plots.

Install

Note, this package is only available as a source distribution. So, you must have a working C++ compiler and the required libraries listed above installed in a location visible to CMake.

From Git:

>pip install git+https://bitbucket.org/reidswanson/gmix2.git

Or on PyPI:

>pip install gmix2

C++ Library

The base C++ code is also available as a header only library, but no additional documentation is provided for using it.

Documentation

The full documentation is available on Read the Docs.

License

Any file without a specific copyright notification is released using the Apache v2 License by me (Reid Swanson). See the LICENSE file for more details. Some code has been copied or adapted from the web (e.g., StackOverflow) that does not have clear license indications. In those cases the code is flagged with comments and links to where the code was found.

Metadata

Release files for gmix2 0.3.0

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

Source distribution (sdist)

Source distribution for gmix2 0.3.0
File Size Uploaded Provenance Actions
gmix2-0.3.0.tar.gz 84.4 kB Without provenance Details for gmix2-0.3.0.tar.gz

Release files / gmix2-0.3.0.tar.gz

Download URL gmix2-0.3.0.tar.gz
Size 84.4 kB
Tags Source
SHA-256 checksum
How to use checksums
71b6f1ece8fb5e269aec0bb417b3d81b128657ce10f948c5928227ee0cbb3754
BLAKE2b-256 checksum
How to use checksums
90e10a14fe53d7cf5b154c1d3842df31d65d154b09581bcf1e7daea2ee2ed1db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for gmix2 0.3.0

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