小编Ash*_*rud的帖子

ValueError:检查目标时出错:预期density_2具有3维,但数组的形状为(10000,1)

我正在使用keras MLP网络对3-D字向量进行二进制分类input_shape=(None,24,73)。我已经使用了两个密集层dense_1dense_2。在dense_2我遇到一个我无法解决的错误。

这是我的模型摘要。

Layer (type)                 Output Shape              Param #   
=================================================================
dense_1 (Dense)              (None, 8, 90)             6660      
_________________________________________________________________
dense_2 (Dense)              (None, 8, 1)              91        
=================================================================
Total params: 6,751
Trainable params: 6,751
Non-trainable params: 0
Run Code Online (Sandbox Code Playgroud)

ValueError:检查目标时出错:预期density_2具有3维,但数组的形状为(22,1)

python neural-network keras

4
推荐指数
1
解决办法
4788
查看次数

标签 统计

keras ×1

neural-network ×1

python ×1