GMM Positions
Overview
This is a package to perform Gaussian Mixture Model (GMM) clustering on particle positions (in ). Like other GMM schemes, the user must specify the number of clusters and a cluster initialization scheme (defaults to random). This is specified in the object initialization line, analagous to how it is done for the sklean GaussianMixture package. There are two choices for the form of the covariance but those are specified by calling different fit functions. See preprint (https://arxiv.org/abs/2112.11424) for additional details.
Installation
The package can be installed using pip
pip install shapeGMM
or downloaded and installed with
python setup.py install
Usage
This package is designed to mimic the usage of the sklearn package. You first initiliaze the object and then fit. Predict can be done once the model is fit. Fit and ppredict functions take particle position trajectories as input in the form of a (n_frames, n_atoms, 3) numpy array.
Initialize:
from shapeGMM import gmm_shapes
sgmm_object = gmm_shapes.ShapeGMM(n_clusters,verbose=True)
Fit:
Uniform (spherical, uncorrelated) covariance:
aligned_trajectory = sgmm_object.fit_uniform(training_set_positions)
Weighted (Kronecker product) covariance:
aligned_trajectory = sgmm_object.fit_weighted(training_set_positions)
Predict:
Uniform (spherical, uncorrelated) covariance:
clusters, aligned_traj, log_likelihood = sgmm_object.predict_uniform(full_trajectory_positions)
Weighted (Kronecker product) covariance:
clusters, aligned_traj, log_likelihood = sgmm_object.predict_weighted(full_trajectory_positions)
Description of Contents
Test Cases
Metadata
Release files for shapeGMM 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shapeGMM-0.0.5.tar.gz | 13.6 kB | Without provenance | Details for shapeGMM-0.0.5.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shapeGMM-0.0.5-py3.8.egg | Legacy Egg format | - | - | Details for shapeGMM-0.0.5-py3.8.egg |
| shapeGMM-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for shapeGMM-0.0.5-py3-none-any.whl |
Total release size: 89.7 kB
Release files / shapeGMM-0.0.5.tar.gz
| Download URL | shapeGMM-0.0.5.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69b559830f4a18b330402fd2cf6fcc89be169fbeb27335f00f22b290b004f34b
|
|
BLAKE2b-256 checksum How to use checksums |
3ad6fa3434c9f734b5664051b7503719e9cc6e8d5d75dd7a336a99bb107e259d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Release files / shapeGMM-0.0.5-py3.8.egg
| Download URL | shapeGMM-0.0.5-py3.8.egg |
|---|---|
| Size | 51.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
0e81069ebbcfe274c39623e0b721fddd6ee9d4f5f0fa0e2825d7287e941cc6b6
|
|
BLAKE2b-256 checksum How to use checksums |
b7def58738d6e4873328b9fadc708e308fb780fcd1a1a7bf8fc67a1e5530b4a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Release files / shapeGMM-0.0.5-py3-none-any.whl
| Download URL | shapeGMM-0.0.5-py3-none-any.whl |
|---|---|
| Size | 24.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e7460ea6ff04077e0b48e43d64b637e502a7fea8e4c86f296fed79e22334cd5
|
|
BLAKE2b-256 checksum How to use checksums |
aa277098df6e010b5e45f58b89e208325682006127c0010a96834abd5c15dd4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Security for shapeGMM 0.0.5
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.