Giter Site home page Giter Site logo

nardus / stnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edouardelasalles/stnn

0.0 0.0 0.0 308 KB

Packaged version of Delasalles et al.'s spatio-temporal neural network model

License: BSD 2-Clause "Simplified" License

Jupyter Notebook 82.59% Python 17.41%

stnn's Introduction

Spatio-Temporal Neural Networks for Space-Time Series Forecasting and Relation Discovery

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Packaged version of Delasalles et al.'s stnn model, with modifications to allow tuning with the ray.tune library.

Original implementation:

The reference implementation is at edouardelasalles/stnn/, and is described in:

  • Ziat A, Delasalles E, Denoyer L, Gallinari P. 2017. Spatio-Temporal Neural Networks for Space-Time Series Forecasting and Relations Discovery2017 IEEE International Conference on Data Mining (ICDM). Presented at the 2017 IEEE International Conference on Data Mining (ICDM). pp. 705–714. doi:10.1109/ICDM.2017.80
  • Delasalles E, Ziat A, Denoyer L, Gallinari P. 2019. Spatio-temporal neural networks for space-time data modeling and relation discovery. Knowl Inf Syst 61:1241–1267. doi:10.1007/s10115-018-1291-x

Commands for reproducing synthetic experiments:

Heat Diffusion

STNN

python stnn/train_stnn.py --dataset heat --outputdir output_heat --manualSeed 2021 --xp stnn

STNN-R(efine)

python stnn/train_stnn.py --dataset heat --outputdir output_heat --manualSeed 5718 --xp stnn_r --mode refine --patience 800 --l1_rel 1e-8

STNN-D(iscovery)

python stnn/train_stnn.py --dataset heat --outputdir output_heat --manualSeed 9690 --xp stnn_d --mode discover --patience 1000 --l1_rel 3e-6

Modulated Heat Diffusion

STNN

python stnn/train_stnn.py --dataset heat_m --outputdir output_heat_m --manualSeed 679 --xp stnn

STNN-R(efine)

python stnn/train_stnn.py --dataset heat_m --outputdir output_heat_m --manualSeed 3488 --xp stnn_r --mode refine --l1_rel 1e-5

STNN-D(iscovery)

python stnn/train_stnn_.py --dataset heat_m --outputdir output_m --xp test --manualSeed 7664 --mode discover --patience 500 --l1_rel 3e-6

Data format

The file heat.csv contains the raw temperature data. The 200 rows correspond to the 200 timestep, and the 41 columns are the 41 space points. The file heat_relations.csv contains the spatial relation between the 41 space points. It is a 41 by 41 adjacency matrix A, where A(i, j) = 1 means that series i is a direct neighbor of series j in space, and is 0 otherwise.

stnn's People

Contributors

nardus avatar edouardelasalles 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.