原文:ValueError: Error when checking input: expected input_1 to have 2 dimensions, but got array with shape (100, 100, 100, 3)

原文链接:http: www.one know.cn bug 报错 原因 输入第一层的张量与数据集的shape不同 解决 将data转置: data data.reshape len data , 然后会报错: 再把shape按照提示改正: inputs Input shape , ...

2019-07-08 16:19 0 3060 推荐指数:

查看详情

标记编码报错ValueError: bad input shape ()

《Python机器学习经典实例》2.9小节中,想自己动手实践汽车特征评估质量,所以需要对数据进行预处理,其中代码有把字符串标记编码为对应的数字,如下代码 报错: 所以由此看出,是label_encoder[i].transform(input_data[i])中 ...

Tue Jan 09 05:04:00 CST 2018 0 2907
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM