May-22-2022, 07:34 AM
Hi everyone,
I've made an empty 24,31 (24 columns and 31 rows if I've done the numbers wrong) matrix with all 0. I've also created a loop that a model out puts a 1,8 array. I'd like the model output of 1,8 to be the first column at 0,0 in the the empty matrix and then the second loop model output to input into the empty matrix at 1,1 and the third output to be 2,2 etc. How do I create a the loop to do that? My append statement is inputting into the matrix how I want it to.
thanks for any help
I've made an empty 24,31 (24 columns and 31 rows if I've done the numbers wrong) matrix with all 0. I've also created a loop that a model out puts a 1,8 array. I'd like the model output of 1,8 to be the first column at 0,0 in the the empty matrix and then the second loop model output to input into the empty matrix at 1,1 and the third output to be 2,2 etc. How do I create a the loop to do that? My append statement is inputting into the matrix how I want it to.
for i in range(24): LSTM_matrix.append(y_pred)There more code in-between which is the model. Do I need to add another variable to my loop and add it to the append?
thanks for any help