Tanny1810/Human-Activity-Recognition-LSTM-CNN

数据维度

Opened this issue · 2 comments

Zomun commented

ValueError: Input 0 of layer sequential_2 is incompatible with the layer: expected ndim=3, found ndim=2. Full shape received: (None, 240)

代码有问题,需要修改数据维度

add the following code before the In[26]
x_train = np.expand_dims(x_train, 2)