我正在尝试使用从文件加载的训练有素的Keras模型来predict()输出单个数据点的输出d。但是我得到一个ValueError If predicting from data tensors, you should specify the 'step' argument.什么意思?
我尝试设置step=1,但是随后出现另一个错误ValueError: Cannot feed value of shape () for Tensor u'input_1:0', which has shape '(?, 600)'。
这是我的代码:
d = np.concatenate((hidden[p[i]], hidden[x[i]])).resize((1,600))
hidden[p[i]] = autoencoder.predict(d,steps=)
Run Code Online (Sandbox Code Playgroud)
该模型期望(?,600)作为输入。我已经串联了两个numpy数组,shape (300,)每个数组都(600,)被调整为(1,600)。这(1,600)是我对的输入predict()。