I get ValueError: could not broadcast input array from shape (396) into shape (434) when running the codes.
This is the stacktrace:
Traceback (most recent call last): File "CNN_RNN_soybean.py", line 703, in <module> rmse_tr,rmse_te,train_loss,validation_loss=main_program(X, Index,num_units,num_layers,Max_it, learning_rate, batch_size_tr,le,l) File "CNN_RNN_soybean.py", line 520, in main_program out_tr = get_sample(dic, A, avg,batch_size_tr, time_steps=5, num_features=316+100+14+4) File "CNN_RNN_soybean.py", line 317, in get_sample out[i, j, :] = np.concatenate((X[r2, :],np.array([[ym]])),axis=1) ValueError: could not broadcast input array from shape (396) into shape (434)
I get ValueError: could not broadcast input array from shape (396) into shape (434) when running the codes.
This is the stacktrace:
Traceback (most recent call last): File "CNN_RNN_soybean.py", line 703, in <module> rmse_tr,rmse_te,train_loss,validation_loss=main_program(X, Index,num_units,num_layers,Max_it, learning_rate, batch_size_tr,le,l) File "CNN_RNN_soybean.py", line 520, in main_program out_tr = get_sample(dic, A, avg,batch_size_tr, time_steps=5, num_features=316+100+14+4) File "CNN_RNN_soybean.py", line 317, in get_sample out[i, j, :] = np.concatenate((X[r2, :],np.array([[ym]])),axis=1) ValueError: could not broadcast input array from shape (396) into shape (434)