Deep Bayesian unsupervised clustering
This repository contains deep Bayesian unsupervised clustering models. In particular,
the multinomial belief network [1] and Zhou–Cong–Chen's Poisson gamma belief network [2].
Installation
You can pip install this package by running:
pip3 install mubelnet
Quick start guide
Let's create a two-layer multinomial belief network (like in the figure) with one and two hidden units, respectively. The kernel function, that advances the Markov chain by a single (Gibbs) step looks as follows:
import haiku as hk
import jax
from mubelnet.nets import MultinomialBelief
from mubelnet.mcmc import sample_markov_chain
# Set up training data.
X_train = ...
n_features = X_train.shape[1]
@hk.transform_with_state
def kernel():
"""Advance Markov chain of belief net by one step."""
n_hidden_units = (1, 2)
model = MultinomialBelief(n_hidden_units, n_features)
model(X_train) # Do one Gibbs sampling step.
params, trace = sample_markov_chain(
jax.random.key(42),
kernel=kernel,
n_samples=100,
n_chains=2,
n_burnin_steps=100,
)
Documentation
Reference docs can be found on: https://hylkedonker.gitlab.io/mubelnet.
Example handwritten digits
A more complete example, that shows how to train a network on the UCI ML hand-written digits datasets, see the digits jupyter notebook.
Meta-mutational signatures
You can browse the meta-mutational signatures (based on COSMIC v3.3) ]and their tri-nucleotide spectra in the meta-signature overview.
Download
The weights of the meta-signatures and the hyperparameters are available in comma-separated format:
References
[1] Donker et al. "Multinomial belief networks for healthcare data", Proceedings of Machine Learning Research 25:1–22, 2024 (2024).
[2]: Zhou, Cong, Chen. "Augmentable gamma belief networks.", J. Mach. Learn. Res. 17.1, 5656-5699 (2016).
License
The code open sourced under the MIT license (see LICENSE.txt).
Metadata
Release files for mubelnet 1.0.0
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 | |
|---|---|---|---|---|
| mubelnet-1.0.0.tar.gz | 37.1 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mubelnet-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.1 MB
Release files / mubelnet-1.0.0.tar.gz
| Download URL | mubelnet-1.0.0.tar.gz |
|---|---|
| Size | 37.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80e04a4bde8d9f9939d223f3d0fd66dd89433b1d289cfa585fa5de7652517ae2
|
|
BLAKE2b-256 checksum How to use checksums |
651b58bcfadab9ced9ba2bda8789e741e5edc1101aa5158b8c83c21f7b826454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / mubelnet-1.0.0-py3-none-any.whl
| Download URL | mubelnet-1.0.0-py3-none-any.whl |
|---|---|
| Size | 34.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34034042cf63f4653f94c3034f26497c2225728040b50b9ed03524623c9c2187
|
|
BLAKE2b-256 checksum How to use checksums |
d380964b1d6f228410ca89e7abdec89833582d81345d0e283797f8444f27ba49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Security for mubelnet 1.0.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.