Skip to main content

DESCRIPTION

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.2.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.2-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gseqnmf-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 41c1b82b8aa3e762ffae8c1dadc7797ffcc20dd1506a7748659f1a1c6110e76a
MD5 8a84bc7b20188a8f267a4e128bc888aa
BLAKE2b-256 ab8741313b6fa565bdd49cd4b193781232511694b78ea7d8d3993798794730ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gseqnmf-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 302d5f5f9588912f20821c803f5e052cd76200d4ef07b81dfc8309302f23fd33
MD5 31e96617ed8aa980ddc917918ad81c7f
BLAKE2b-256 5a829cece6d0f0b290eece811ea27e6b2e369439ecff56e95baa5d021fdfb7e2

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