Skip to main content

seqNMF with GPU support & sklearn syntax

Project description

gseqNMF

This package is a re-implementation of the seqNMF algorithm described in Mackevicius et al., 2019, and provided as a MATLAB toolbox here. It utilizes standard sklearn syntax for easy plug-and-play usage.

Features

  • Compatible with scikit-learn pipelines
  • Significant performance optimizations (benchmarks pending)
  • Drop-in GPU acceleration via CuPy
  • Comprehensive test suite
  • Linted with fully-typed codebase
  • Optional visualization module

Installation

The package is available on PyPI and can be installed via pip.

pip install gseqnmf

GPU acceleration can be enabled by installing the package with the cuda12 extra. Development dependencies can be installed with the dev extra.

pip install gseqnmf[cuda12,dev]

Usage Example

import numpy as np
from gseqnmf import GseqNMF

# Load synthetic dataset (samples x neurons)
data = np.load("your_data.npy")
n_components = 3
seqeuence_length = 50
lam = 5e-2
model = GseqNMF(
    n_components=n_components,
    sequence_length=seqeuence_length,
    lam=lam,
)
model.fit(data)

License

This project is licensed under the terms of the MIT license.

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

gseqnmf-0.0.3.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gseqnmf-0.0.3-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file gseqnmf-0.0.3.tar.gz.

File metadata

  • Download URL: gseqnmf-0.0.3.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for gseqnmf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a26469cebd6d32eb16343f582bb6b1416ef04ba7973fd334ed1982fd16091fee
MD5 20982ea2d004f40bdb39f00d146ebe4b
BLAKE2b-256 dd1981bb29e8b733f9c3d3b46bcea69bd0d42d57f9205223440fbc8dd65e156e

See more details on using hashes here.

File details

Details for the file gseqnmf-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gseqnmf-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for gseqnmf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75d4be5c962104acf74c801e52a3a3e90ac3f92a52ffef6b989eafccd519cccc
MD5 940bcde1618a46eaec39ec1ce368ba75
BLAKE2b-256 1fa9ea2dac4a377c63d872a76cbda8dc0dae2b2c0af41cba8a08c00dcfbcdf88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page