model.fit 时出错 第二个截图
尝试重塑,并给出参数输出形状,顺便说一句,它不存在
帮助,第二天试图解决这个问题`
顺便说一句,答案很简单。由于自动编码试图在 ndarray 中从 3 维移动到 4 维,并且在移动时遇到问题。所以我们需要在之前添加 1 个维度。
例如:
test_data = [x, y, z] temp = test_data[np.newaxis, ...] # so we get test_data = [1, x, y, z]