Skip to content
/ tvart Public
forked from kamdh/tvart

Time-varying Autoregression with Low Rank Tensors

Notifications You must be signed in to change notification settings

lijunsun/tvart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Time-varying Autoregression with Low Rank Tensors (TVART)

by Kameron Decker Harris

This is the code repository for the TVART method, to accompany the paper "Time-varying Autoregression with Low Rank Tensors" by Kameron Decker Harris, Aleksandr Aravkin, Rajesh Rao, and Bing Brunton.

Dependencies:

src/

The files to run the TVART algorithm and examples are included here.

  • TVART_alt_min.m - implementes the alternating minimization algorithm described in the text
  • switching_linear.m - switching linear test case
  • smooth_linear.m - smooth linear test case
  • example_worms.m - worm behavior example
  • example_el_nino.m - sea surface temperature example
  • preprocess_neurotycho.py - preprocessing script to remove line noise and compute band power for neural example
  • example_neurotycho.m - neural activity example
  • other files: helper functions, iPython notebooks used to compare with SLDS, switching_linear_comparison* and smooth_linear_comparison* run sweeps of test problems across N... these are provided as-is and will require some tweaking to run

data/

The data for the examples is stored here. You will need to carry out some extra steps to run all examples:

Worm behavior

We obtained the code and data from Costa et al. from https://github.com/AntonioCCosta/local-linear-segmentation. To just run our example, all that is needed is "worm_tseries.h5".

Sea surface temperature

In order to run the "Sea surface temperature" example, you must download

  • sst.wkmean.1990-present.nc
  • lsmask.nc

from https://www.esrl.noaa.gov/psd/repository/entry/show/PSD+Climate+Data+Repository/Public/PSD+Datasets/NOAA+OI+SST/Weekly+and+Monthly/.

The files "ersst4.nino.mth.81-10.ascii" and "PDO.txt" are from https://www.cpc.ncep.noaa.gov/data/indices/ersst4.nino.mth.81-10.ascii and http://research.jisao.washington.edu/pdo/PDO.latest.txt.

Neural activity

These data are kindly provided by the Neurotycho project: http://neurotycho.brain.riken.jp/download/base/20090525S1_Food-Tracking_K1_Zenas+Chao_mat_ECoG64-Motion8.zip.

In order to prepare the data, you must run the preprocessing script.

figures/

After running the code, figures will be saved in this directory. We include some figures modified from Neurotycho http://neurotycho.org/food-tracking-task.

About

Time-varying Autoregression with Low Rank Tensors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 81.6%
  • MATLAB 17.9%
  • Python 0.5%