title: Right way of inputting data on Tensorflow Neural Network
body: <p>I am working on a model for time series forecasting.</p>
  <p>I have two arrays xtrain and ytrain with shapes:</p>
  <ul>
  <li>xtrain = (961, 4, 1865)</li>
  <li>yrain = (961, 1, 1865)</li>
  </ul>
  <p>The model is:</p>
  <pre><code>model = Sequential(
  [
    tf.keras.layers.Conv1D(filters=64,
                           kernel_size=3,
                           strides=1,
                           activation=&quot;relu&quot;,
                           padding='causal'),
    tf.keras.layers.LSTM(64)
    tf.keras.layers.Dense(10, activation=&quot;relu&quot;),
    tf.keras.layers.Dense(1)
  ])
  </code></pre>
  <ul>
  <li>961 is the value given some dates</li>
  <li>4 and 1 are the dependent and indpendet variables</li>
  <li>1865 are the different companies that registered the data</li>
  </ul>
  <p>How should I input the data and make the model so it treats xtrain as one traditional CNN will behave with a dataset with shape (64, 64, 3)?</p>