人工神经网络里的参数 弃用
来源:6-12 回归-分类-人工神经网络-2

碳基打工人
2021-01-15
mdl.fit(X_train, np.array([[0, 1] if i == 1 else [1, 0] for i in Y_train]), nb_epoch=1000, batch_size=8999)
这个人工神经网络的参数nb_epoch 是不是弃用了 我改成epoch行吗?
但是老是报错 如下:
Input 0 of layer sequential is incompatible with the layer: expected axis -1 of input shape to have value 8999 but received input with shape (None, 9)
写回答
1回答
-
同学你好,感觉是batch参数不太对,应该是8999的维度,到入参貌似是9,检查下参数吧。
00
相似问题