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 hashes)

Uploaded Python 3

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