Code Monkey home page Code Monkey logo

tgc-attention's Introduction

TGC-Attention

Abstract: Efficient prediction of bike-sharing usage is pivotal for enhancing user satisfaction and optimizing operational costs for service providers. In this paper, we propose a novel model, the Temporal Graph Convolutional Attention Network (TGC-Attention), which leverages Temporal Convolution Network (TCN) to capture node correlations and updates the adjacency matrix of the Graph Convolutional Network (GCN). The model integrates attention prediction with channel embedding based on shapelet-kmeans and incorporates a residual block based on series decomposition. Through real-world data comparison among different time series prediction models, our study yields intriguing insights for further exploration in this domain.

!Firstly, use the od generator in pruning to generate the od_matrix.pt!

Overview

image

Data Discription

The Divvy dataset, which includes both electric and classic bicycles from Chicago's bike-sharing system, was chosen for experimentation. Spanning from January 1, 2022, to February 28, 2024, it comprises 5,505,718 classic bicycle trips. To provide a comprehensive understanding of the dataset, cumulative probability distributions of distance and duration were computed and visualized in Figures 3 and 4. Leveraging these insights, the dataset underwent spatio-temporal pruning, excluding trips with durations less than 120 minutes and distances less than 10 kilometers. Consequently, the final dataset contained 5,422,713 trips. This system encompasses 756 stations, each of which the model will abstract into a graph. image image

Training

For training, 80% of the dataset is randomly shuffled and used as the training set to train the model, while the remaining 20% is reserved for testing the prediction performance. The Adam optimizer is used during training with the RMSE loss function. Figure 5 illustrates the average loss curves for each epoch across different input and output configurations. image

tgc-attention's People

Contributors

ghazziwang avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  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.