Giter VIP home page Giter VIP logo

msstn's Introduction

MSSTN

This repo is the code for our paper MSSTN: Multi-Scale Spatial-Temporal Network for Air Pollution Prediction. We provide pre-processed data and trained models that can reproduce main result listed in our paper. Please contact us at [email protected] if you have any question.

Requirement

We have tested our code under centos7, python3, and tensorflow 1.8.0. Similiar environment and later versions may also work but we didn't test that.

Data

We provide pre-processed data on Baidu NetDisk (Secure Code: 057p). Download data and replace the '/data/' folder before use.

Usage

Train

Use following command to train models from scratch:

python3 main.py train
Test

Use following command to load trained models and show result on test set:

python3 main.py test [InferenceModel]

where InferenceModel can be found below in config part.

Config

You may modify config.yaml to tune the training process by yourself. For example, item 'Target_City' decide which city to optimize/test when 'city_number' is set to 1, and 'InferenceModel' claim the trained model to load. More specifically, this table shows the relationship between them:

City Index InferenceModel
Beijing 0 MSSTN20190802_225240
Shijiazhuang 1 MSSTN20190803_085115
Taiyuan 2 MSSTN20190803_090722
Huhot 3 MSSTN20190803_092719
Dalian 4 MSSTN20190803_094349

msstn's People

Contributors

zhiyuan-wu 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.