Giter Site home page Giter Site logo

weiliango / self-supervised-contrastive-forecsating Goto Github PK

View Code? Open in Web Editor NEW

This project forked from junwoopark92/self-supervised-contrastive-forecsating

0.0 1.0 0.0 5.96 MB

"Self-Supervised Contrastive Forecasting", accepted at International Conference on Learning Representations (ICLR) 2024

Home Page: https://openreview.net/forum?id=nBCuRzjqK7

License: MIT License

Shell 37.67% Python 62.33%

self-supervised-contrastive-forecsating's Introduction

Self-Supervised-Contrastive-Forecasting

This is an official repository for the paper, titled Self-Supervised-Contrastive-Forecasting, accepted at ICLR'24.

Our repo includes Autocorrelation-based Contrastive Loss (AutoCon) and Model Architecture (AutoConNet).

Our code is implemented based on TSLib, and it also includes some time series models. If you want to evaluate more models, please check the TSLib. We sincerely thank the creators of TSLib for their contributions to the time series community.

Environment setup

python == 3.8
torch == 1.7.1
numpy == 1.23.5
pandas
statsmodels
scikit-learn
einops
sympy
numba

Run with Command Line

python run.py --AutoCon --AutoCon_multiscales 720 --AutoCon_wnorm LastVal --AutoCon_lambda 0.1 --d_model 16 --d_ff 16 --e_layers 3 --target OT --c_out 1 --root_path ./dataset/ETT-small --data_path ETTh2.csv --model_id ICLR24 --model AutoConNet --data ETTh2 --seq_len 336 --pred_len 720 --enc_in 1 --des 'Exp' --itr 1 --batch_size 64 --learning_rate 0.005 --feature S

Run with Scripts

sh ./scripts/AutoCon_{ETTh1|ETTh2|ETTm1|ETTm2|Electricity|Traffic|Weather|Excange|Illness} {CUDA_VISBLE_DEVICES} {# OF RUNS}

Examples

$pwd
/home/user/Self-Supervised-Contrastive-Forecasting

$sh ./scripts/AutoCon_ETTh2.sh 0 5 
$sh ./scripts/AutoCon_Traffic.sh 0 5

Reproducibility

For reproducibility, we provide logs of the experimental results in the paper. These logs are generated from the evaluation of the same model five times. We observed performance variations based on GPU devices due to CUDA optimization for CNN layers even though a fixed seed. Our experiments were primarily conducted on the RTX3090.

Citations

@inproceedings{park2024self,
  title={Self-Supervised Contrastive Forecasting},
  author={Junwoo Park and Daehoon Gwak and Jaegul Choo and Edward Choi},
  booktitle={Proc. the International Conference on Learning Representations (ICLR)},
  year={2024}
}

self-supervised-contrastive-forecsating's People

Contributors

junwoopark92 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.