I want append numpy arrays like below
A: [[1,2,3],[2,3,1],[1,4,2]] B: [[1,3,3],[3,3,1],[1,4,5]] A+B = [[[1,2,3],[2,3,1],[1,4,2]], [[1,3,3],[3,3,1],[1,4,5]]]
How can I do this?
====================
Code copied from comment, and formatted for clarity:
X = np.empty([54, 7])
for seq in train_set:
print(seq)
temp = dp.set_xdata(seq) #make 2d numpy array
print(temp.shape)
X = np.row_stack((X[None], temp[None]))
X = np.delete(X, 0, 0)
print("X: ",X)
ValueError: all the input arrays must have same number of dimensions.