0
$\begingroup$
  1. I understand that I can set up a convolutional network for 1-dimensional sequence/time series.
model = Sequential()
model.add(Conv1D())
model.add(GlobalMaxPooling1D())
model.add(Dense())
  1. Let's say I'd like to use "regular" (non-deep-learning) features too in my model, how should I best combine the two at a dense layer?

Concretely, let's assume that, for each row of my dataset, there are 1k points in the time series, along with 100 "regular" features.

  1. To generalize my question, let's say there are now two kinds of time series plus regular features for each row in my dataset. If I would like to have a separate convolutional block for each time series, how do I combine all three?
$\endgroup$
1
$\begingroup$

This can be done with Keras functional API. enter image description here

In this example, "merge_1" layer gets input from :

  1. Output of LSTM Layer (lstm_1)
  2. aux_input layer

More info : https://keras.io/getting-started/functional-api-guide/

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thanks. I will take a look at the documentation. $\endgroup$ – wsw Feb 22 '19 at 4:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.