Giter VIP home page Giter VIP logo

tvart's Introduction

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. [arxiv link]

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.

tvart's People

Contributors

kamdh avatar

Stargazers

Bo Shen avatar Jieling JIN avatar Scott Linderman avatar Koki Kawabata avatar pertik_ avatar Andy Goldschmidt avatar  avatar Yi avatar Zhuang Dingyi avatar Andres Mariscal avatar Takehiro Suzuki avatar zhoudi avatar Lijun Sun avatar 爱可可-爱生活 avatar

Watchers

 avatar Andy Goldschmidt avatar paper2code - bot avatar

tvart's Issues

verbosity parameter in TVART_alt_min.m

In the TVART_alt_min.m file, the verbosity variable is used to reset the spatial and temporal modes, i.e., A, B, and C. If the TVART uses alternating minimization technique and every optimization problem is convex in either A/B/C, then shouldn't the cost function decrease at every step? It is not clear why verbosity variable is used to reset the A/B/C in the code. Also, resetting A, B, C was not mentioned in the paper.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.