Skip to main content

Time Series NMF

Project description

Build Status DOI

time-series-nmf

time-series-nmf is a Python package implementing non-negative matrix factorization for time series data. Currently, it supports a version with Tikhonov regularization and sparse constraints as proposed by Fabregat R.. et. al. and implemented in Matlab in https://github.com/raimon-fa/palm-nmf. It uses a PALM optimization scheme. We plan to add other models and optimization algorithms.

This work is under continuous development.

Installation:

# from github (latest)
pip install git+https://github.com/valentina-s/time-series-nmf

# from pypi (stable)
pip install time-series-nmf 

Getting started:

import tsnmf

# generate some data
from numpy.random import rand
data = rand(100,1000)

# fit time series nmf to data
model = tsnmf.smoothNMF(n_components=5)
model.fit(data)

# outputs
model.W
model.H

Acknowledgements

This work has been supported by NSF award #1849930 and the Gordon and Betty Moore and Alfred P. Sloan Foundations Data Science Environments grant (MSDSE).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

time_series_nmf-0.1.0.dev0-py3-none-any.whl (8.5 MB view details)

Uploaded Python 3

File details

Details for the file time_series_nmf-0.1.0.dev0-py3-none-any.whl.

File metadata

  • Download URL: time_series_nmf-0.1.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.10

File hashes

Hashes for time_series_nmf-0.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 12e19091898863dfaf442b80c263ccf5e9f58474c37537011ac064558ba74ad3
MD5 2b723ef3e824cadfca104285a876f3c6
BLAKE2b-256 18acd07508a7d62714ffb97c034839acd3b8a33c476947346a3932a628a5e803

See more details on using hashes here.

Supported by

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