philipperemy / keras-tcn

Keras Temporal Convolutional Network.
MIT License
1.87k stars 454 forks source link

Question: Multivariate TCN #215

Closed farzinaa closed 2 years ago

farzinaa commented 3 years ago

Hi, I Have a question about the dependencies of the elements in an input sequence: Is there anyways to learn the relationship of such element? For example in the exchange task there are 8 currencies. My understanding is that removing half of these currencies would not effect the prediction of the other four. OR adding extra features is redundant and will not effect the outcome of the prediction. Is this correct? If so, is it possible for the model to learn from other currencies/features and how one would approach this? Many thanks

loySoGxj commented 2 years ago

What kind of problem (background) are you thinking about exactly?

farzinaa commented 2 years ago

I am trying to predict time series with multiple features. The data are pressure in each valve in a system where valves are connected through pipes and pressure in valve A is always grater than pressure in valve B and pressure in valve C is lower than in valves B. I use sequences of [A, B, C, ...]. However sometimes the predicted value of B is grater than value of A.

philipperemy commented 2 years ago

@farzinaa Any recurrent model in Keras expects a matrix of shape (batch_size, time_steps, input_dim).

Similar to LSTM, input_dim > 1 is the multivariate case.

The dependencies between each element in this dimension will be modeled.

For example, let's consider you have 10 time series of 50 steps. You have two choices:

I hope this answers your question.

farzinaa commented 2 years ago

Thank you. It is all clear now.