Combining Time Series Data and Summary Statistics for RNN/CNN Embedding Networks #1213
-
My model generates data in the shape of (batch_size, n_time_steps, n_time_series). I’ve also defined a function to calculate hand-crafted summary statistics, resulting in data of shape (batch_size, n_manual_features). How should I effectively combine these datasets for use with RNN/CNN networks or other embedding nets? Would you please provide a minimum code showing how to do this? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @ali-akhavan89 thanks for starting this discussion! The embedding net is trained end-to-end with the density estimator. Internally, the output of the embedding net, i.e., the embedded times series of image features, are fed into the density estimator network at some point. I assume that this is the point where you want to add your hand-crafted features as input to the density estimator as well. However, it is difficult to access this point from the outside. Thus, my suggestion would be that you provide a custom embedding net that can take both, the raw time series and your hand crafted summary stats as input. The net then just passes on the summary stats to the output layer, and embeds the time series using an appropriate embedding net and outputs the concatenation of embedded time series features and summary stats. Note that you probably need to find a way to combine the shapes From the perspective of I hope this helps! Best, |
Beta Was this translation helpful? Give feedback.
Hi @ali-akhavan89 thanks for starting this discussion!
The embedding net is trained end-to-end with the density estimator. Internally, the output of the embedding net, i.e., the embedded times series of image features, are fed into the density estimator network at some point. I assume that this is the point where you want to add your hand-crafted features as input to the density estimator as well. However, it is difficult to access this point from the outside.
Thus, my suggestion would be that you provide a custom embedding net that can take both, the raw time series and your hand crafted summary stats as input. The net then just passes on the summary stats to the output layer, and embeds…