Code Monkey home page Code Monkey logo

st-grat's Introduction

ST-GRAT

The pytorch implementation of ST-GRAT: A Novel Spatio-temporal Graph Attention Network for Accurately Forecasting Dynamically Changing Road Speed

st-grat's People

Contributors

lmissher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

st-grat's Issues

Why sigmoid on es and eso?

model.py at line 155 and 165:

    es = torch.sigmoid((query[:self.k//2] * keys[:self.k//2]).sum(-1, keepdim=True) / (self.d ** 0.5))
    eso = torch.sigmoid((query[self.k//2:] * keys[self.k//2:]).sum(-1, keepdim=True) / (self.d ** 0.5))

Unlike the paper, I wonder why you put sigmoid on here.

about the spatial embedding file

hello,i want to know where i can get the spatial embedding file(suffix is npy)?parser.add_argument('--SE_file', default='**.npy', help='spatial emebdding file')

A few problems of the code

Hello, author,
As far as I can read, I find there may be the following problems in this code.
Firstly, I find that the ratio of training set / verification set / test set in the paper is 7 / 1 / 2, but the data distribution ratio in this code is 6 / 2 / 2.
Secondly, whether the results in the paper are the best results measured from the validation data set or the last test set, or the best results selected from the validation set and test set!
Finally, hope to get an answer!
Thanks!

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.