Time Series NMF
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e19091898863dfaf442b80c263ccf5e9f58474c37537011ac064558ba74ad3 |
|
MD5 | 2b723ef3e824cadfca104285a876f3c6 |
|
BLAKE2b-256 | 18acd07508a7d62714ffb97c034839acd3b8a33c476947346a3932a628a5e803 |