A Python Dirichlet-multinomial Mixture Model
Project description
pyDIMM
A Python Dirichlet Multinomial Mixture Model.
Quick Start
You can install pyDIMM by pip.
pip install pyDIMM
pyDIMM needs certain version of scikit-learn package to work. We recommend you to have scikit-learn==1.1.3, which has been tested to work normally.
After that, you can import pyDIMM and use it to fit a Dirichlet Multinomial Mixture model.
import numpy as np
import pyDIMM
X = np.random.randint(1,100,size=[200,100])
dimm = pyDIMM.DirichletMultinomialMixture(
n_components=3,
tol=1e-3,
max_iter=100,
verbose=2,
pytorch=0
).fit(X)
print('Alphas:', dimm.alphas)
print('Weights:', dimm.weights)
label = dimm.predict(X)
print('Prediction label:', label)
Contact
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyDIMM-0.2.0.tar.gz.
File metadata
- Download URL: pyDIMM-0.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae01c28c89b830908e4cb9a8f0f48d77c2a84d181d0fc564e555b3c304f2ac43
|
|
| MD5 |
ea850582fad0b8a287325237bb6000fd
|
|
| BLAKE2b-256 |
997c88388e60ef915ad4fcc3df26cd9e13997f50b29b5d9da1fd8fd491e40617
|
File details
Details for the file pyDIMM-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyDIMM-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85d355560024cc4799ee0f3bfba313d714a1e3a466d732751609342f45f6cfe4
|
|
| MD5 |
6f6acffbf285c468865b29d810e05d24
|
|
| BLAKE2b-256 |
f8d3f5a5ffc7508ff92995c9009959d47f813054d785d411d30d7d1402518704
|