I am trying to pass a list of (4, (6,7,k)) as an argument I have list of size of 4 with ndarrays of(6,7,k) and I am using this line:
test_data = np.zeros(( 6, 7, 15))
feature_list = get_Features() #list of 0 and 1s
for i in range(0, 15):
for j in range(0, 6):
for k in range(0, 7):
test_data[j][k][i] = feature_list[k+ j*6 + i*15]
x_test_list.append(test_data)
np.array(x_test_list)
As the result I am getting this error at the terminal:
ValueError: could not broadcast input array from shape (6,7,15) into shape (6,7)
Can you help me to solve why it is omitting one dimension and how it can be fixed?
Thanks