我是一个文本处理技术的初学者,我正在尝试执行以下代码。epochs=100) 我得到了以下错误: ValueError: A target array with shape (11203, 25) was passed for output of shape (None, 3) while using as loss `categorical_crossentropy`.This loss expects targets to have the same shape as the output. 有人能帮我解决这个问题吗
该算法是用来描述产品的。这部分从图像(14个输出值)中识别衣服的颜色,但是它仍然返回以下错误 错误: ValueError: Error when checking model target: the list of Numpymodel.add(Dense(5, activation='relu')) model.compile(loss'effnet‘中定义的<
我一直在使用tensorflow loss (sparse_softmax_cross_entropy_with_logits)编写一个keras模型,我遇到了这个问题。对于这个模型,真值应该是带形状的张量(batch_size),模型的输出将具有形状(batch_size,num_classes)。我已经验证了模型的输出是形状的(?,num_classes),并且我为</