Improvise_a_Jazz_Solo_with_an_LSTM_Network_v4 djmodel function purpose

I am trying to understand the structure of the code in Improvise_a_Jazz_Solo_with_an_LSTM_Network_v4 W1 Programming exercise 3 and how different functions fit together.

What was the purpose of implementing djmodel when it is not subsequently used in the music_inference_model ?

what is the purpose of each function in the task? music_inference_model is clearly used further down to make predictions, but what djmodel for?

1 Like

djmodel() is used. The output from the djmodel is stored as a global variable in the densor() layer.
densor() is then input to the music_inference_model().