Skip to main content

GPU-based CACGMM trainer in CuPy

This package adapts the complex angular GMM model and trainer from pb_bss using CuPy for accelerated inference on the GPU.

At the moment, it is meant to be used with the GSS toolkit, but it can also be used as a general CACGMM trainer tool.

Installation

> pip install cupy-cuda102  # modify according to your CUDA version (https://docs.cupy.dev/en/stable/install.html#installing-cupy)
> pip install cacgmm-gpu

Usage

from cacgmm.cacgmm_trainer import CACGMMTrainer

import cupy as cp

source_activity = cp.random.rand(2, 1000)
source_activity = source_activity / cp.sum(initialization, keepdims=True, axis=0)

initialization = cp.repeat(source_activity[None, ...], 513, axis=0)  # F x K x T
source_active_mask = cp.repeat(source_activity[None, ...], 513, axis=0)
X = cp.random.rand(4, 1000, 513)    # D x T x F

cacGMM = CACGMMTrainer()

cur = cacGMM.fit(
    y=X.T,
    initialization=initialization,
    iterations=10,
    source_activity_mask=source_active_mask,
)

affiliation = cur.predict(X.T, source_activity_mask=source_active_mask) # 
posterior = affiliation.transpose(1, 2, 0)  # K x T x F

Metadata

Release files for cacgmm-gpu 0.1.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 cacgmm-gpu 0.1.0
File Size Uploaded Provenance Actions
cacgmm-gpu-0.1.0.tar.gz 7.6 kB Without provenance Details for cacgmm-gpu-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cacgmm-gpu 0.1.0
File Interpreter ABI Platform Actions
cacgmm_gpu-0.1.0-py3-none-any.whl Python 3 none any Details for cacgmm_gpu-0.1.0-py3-none-any.whl

Total release size: 17.8 kB

Release files / cacgmm-gpu-0.1.0.tar.gz

Download URL cacgmm-gpu-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d9bd054aee8ba9d41c18548ebfb8f64339036dc7f17263f108bbd8f83c93b664
BLAKE2b-256 checksum
How to use checksums
7b5242563071a5ddd7fd6c845d5d236474f4af13b894313fe26430d00c7948db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.11

Release files / cacgmm_gpu-0.1.0-py3-none-any.whl

Download URL cacgmm_gpu-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dacb9476272db674b7029444b9214c6c3d7857e9938cc2cbd31f1c4f3520fb7a
BLAKE2b-256 checksum
How to use checksums
53a8b3a64fd953fe57b34f0e96d2eebf41151b34d153cb256d02206638929038
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.11

Security for cacgmm-gpu 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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