- 博客(3)
- 收藏
- 关注
原创 (记录)报错:ValueError: Input 0 of layer conv2d is incompatible with the layer: : expected min_ndim=4, fo
神经网络作业过程错误记录:完整报错:ValueError: Input 0 of layer conv2d is incompatible with the layer: : expected min_ndim=4, found ndim=3. Full shape received: [32, 28, 28]报错原因:所需输入最小维度为4——min_ndim=4;当前维度为3——found ndim=3。解决问题:增加维度输入 x_train = np.expand_dims(.
2022-04-17 11:06:49
4069
1
原创 (记录)tensorflow.keras.models.Sequential和输入层InputLayer以及dense层个人理解
model = models.Sequential()model.add(layers.Dense(64, activation='relu', input_shape=(10000,)))model.add(layers.Dense(64, activation='relu'))model.add(layers.Dense(46, activation='softmax'))神经网络模型的构建通常由输入层,隐藏层和输出层构成其中,输出层的激活函数通常为softmax对神经网络全连接层.
2022-04-13 08:43:40
2974
1
原创 神经网络作业问题(记录)
遇到的问题:MemoryError: Unable to allocate 1.86 GiB for an array with shape (25000, 10000) and data type float64打开电脑设置
2022-04-09 19:35:15
1549
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人