Python Forum
keras tensor mainpulation output to next input
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
keras tensor mainpulation output to next input
#1
Hi,
Since 2 week, I try to merge a dense layer output to a LSTM input to create a kind of auto-feed ML (today forcast is add to tomorrow input)

the code for the moment is:

main_inputs = Input(shape=(30, 6))
lstm1_out = LSTM(100, return_sequences=False)(main_inputs)
output1= Dense(1)(lstm1_out)

[b]output1_mod = something to modify an fit output to nest LSTM input.... [/b]

merge_input = K.concatenate([main_inputs, output1_mod],2)
lstm2_out = LSTM(100, return_sequences=False)(merge_input)
finaloutput= Dense(1)(lstm2_out)
...
here a picture of what I try to do...
İmage


Thank so much for your attention...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  1st layer tf.keras output shape set at multiple - need help! Afrodizzyjack 0 1,786 Jun-07-2022, 04:53 PM
Last Post: Afrodizzyjack
  scikit-tensor package Lamine 1 2,528 Feb-27-2022, 01:16 PM
Last Post: jefsummers
  issue displaying summary of whole keras CNN model on TensorFlow with python Afrodizzyjack 0 1,619 Oct-27-2021, 04:07 PM
Last Post: Afrodizzyjack
  Understanding Keras and TensorFlow and how to use them bytecrunch 1 2,054 Mar-11-2021, 02:40 PM
Last Post: jefsummers
  Problems feeding live input from my microphone into a keras model (SegFault: 11) zeptozetta 1 2,541 Sep-14-2020, 03:08 AM
Last Post: zeptozetta
  Keras.Predict into Dataframe Finpyth 13 9,580 Aug-31-2020, 07:22 AM
Last Post: hussainmujtaba
  Making a Basic Keras Model - Input Shape and Parameters MattKahn13 0 2,094 Aug-16-2020, 04:36 PM
Last Post: MattKahn13
  Error when import Keras Azadfalah 1 2,753 Apr-29-2020, 04:45 AM
Last Post: buran
  Keras + Matplotlib causing crash spearced 3 4,440 Feb-06-2020, 04:54 PM
Last Post: zljt3216
  Keras Dense layer with wrong input d1r4c 0 1,739 Jan-02-2020, 02:35 PM
Last Post: d1r4c

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020