Skip to content

Node features embedding for time-series forecasting #384

Answered by claCase
andremarco asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @andremarco ,
you can check out my implementation of a GAT-RNN available from this link . The first input represent the N time series features of shape BxTxNxF and the second is a tensor of shape BxTxNxN which represent the relation between the time series. B is the batch dimesion, T the length of the time series and F the feature dimension. The model outputs the hidden states of the RNN for each time step. You can then either apply a dense layer on top of the hidden representation or just use them to predict original time series shifted by t and use a MSE loss. The following sample code implements the model.

import numpy as np 
import tensorflow as tf 
from src.modules.models import N…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danielegrattarola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants