Code Monkey home page Code Monkey logo

atp's Introduction

Taylorformer

Our model architecture is shown below:

image

Requirements

To install requirements:

pip install -r requirements.txt

Training and Evaluation

Training

To train the model(s) in the paper, run this command:

python training_and_evaluation.py "<type of dataset>" "<model>" num_iterations num_repeat_runs n_C n_T 0

where is for example ETT or exchange, is for example, TNP or taylorformer, where n_C and n_T are the number of context and target points, respectively.

You will have needed to create appropriate folders to store the model weights and evaluation metrics. We have included a folder for the taylorformer on the ETT dataset, with n_T = 96, as an example. Its path is weights_/forecasting/ETT/taylorformer/96.

Evaluation

Evaluation metrics (mse and log-likelihood) for each of the repeat runs are saved in the corresponding folder e.g. weights_/forecasting/ETT/taylorformer/96. The mean and standard deviations are used when reporting the results.

Load pre-trained model

Here is an example of how to load a pre-trained model for the ETT dataset with the Taylorformer for the target-96-context-96 setting.

python pre_trained_model_ex.py 0 37

Results

We show our results on the forecasting datasets. More results can be found in the paper.

image

atp's People

Contributors

oremnirv avatar raghul-parthipan avatar

Stargazers

 avatar  avatar

Watchers

 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.