Code Monkey home page Code Monkey logo

clcrn's Introduction

Conditional Local Convolution for Spatio-Temporal Meteorological Forecasting

This is a Official PyTorch implementation of CLCRN in the following paper:

Basic Requirements

Dependency can be installed using the following command:

conda env create --file env_clcrn.yaml
conda activate CLCRN_env

Data Preparation

1) Using the preprocessed dataset:

The four datasets after preprocessed are available at Google Drive.

Download the dataset and copy it into data/ dir. And Unzip them, and obtain data/{cloud_cover,component_of_wind,humidity,temperature}/

2) Generating dataset from scratch:

The raw datasets WeatherBench(Arxiv) can be downloaded from Github: WeatherBench. And the provided scripts/generate_training_data.py is used for data preprocessing.

Dump them into dataset_release/ files, and run the following commands to generate train/test/val dataset.

# Dataset preprocess
python scripts/generate_training_data.py  --input_seq_len=12 --output_horizon_len=12

Training the Model

The configuration is set in /experiments/config_clcrn.yaml file for training process. There are two config files for clcrn/clcstn training. Run the following commands to train the target model.

# CLCRN
python train_clcrn.py --config_filename=./experiments/config_clcrn.yaml

# CLCSTN
python train_clcstn.py --config_filename=./experiments/config_clcstn.yaml

Citation

If you find this repository, e.g., the code and the datasets, useful in your research, please cite the following paper:

@misc{lin2021conditional,
      title={Conditional Local Convolution for Spatio-temporal Meteorological Forecasting}, 
      author={Haitao Lin and Zhangyang Gao and Yongjie Xu and Lirong Wu and Ling Li and Stan. Z. Li},
      year={2021},
      eprint={2101.01000},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

Acknowledgement

The repository is mainly based on DCRNN's Readme, seeing: https://github.com/liyaguang/DCRNN

And

https://arxiv.org/abs/1707.01926

The baselines are implementated based on torch-geometric-temporal, seeing:

https://arxiv.org/abs/2104.07788

clcrn's People

Contributors

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