Giter VIP home page Giter VIP logo

tapnet's Introduction

TapNet

This is a Pytorch implementation of Attentional Prototype Network for the paper TapNet: Multivariate Time Series Classification with Attentional Prototype Network published in AAAI 2020.

Run the demo

python train.py --dataset <DATASET>

You can find all the parameters we used in the file run.sh.

Data

[NEWS] You can download all the preprocessed data from Google Drive.

We use the latest multivariate time series classification dataset from UAE archive with 30 datasets in wide range of applications.

The raw data is converted into npy data files in the following format:

  • Training Samples: an N by M by L tensor (N is the training size of time series, M is the multivariate dimension, L is the length of time series),
  • Train labels: an N by 1 vector (N is the training size of time series)
  • Testing Samples: an N by M by L tensor (N is the testing size of time series, M is the multivariate dimension, L is the length of time series),
  • Testing labels: an N by 1 vector (N is the testing size of time series)

You can specify a dataset as follows:

python train.py --dataset NATOPS

(or by editing train.py)

The default data is located at './data'.

Paper

if you use our code in this repo, please cite our paper \cite{zhang2020tapnet}.

@inproceedings{zhang2020tapnet,
  title={TapNet: Multivariate Time Series Classification with Attentional Prototypical Network.},
  author={Zhang, Xuchao and Gao, Yifeng and Lin, Jessica and Lu, Chang-Tien},
  booktitle={AAAI},
  pages={6845--6852},
  year={2020}
}

tapnet's People

Contributors

xuczhang avatar flash121123 avatar kdd2019-tapnet avatar

Stargazers

Ankit Ranjan avatar

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.