我建立了一个基于LSTM的神经网络来预测BTC的价格。我想说,它的训练很不错,但我不知道如何让它预测明天的价格。你知道吗
我用Keras的方法predict来训练我的模型,用今天的价格作为参数,然后用tensorflow作为参数tf.argmax文件“选择输出数组中的最高确定性。现在我知道它指的是在计算机视觉的情况下预测的类,但是我真的不知道那些概率指的是什么。你知道吗
模型构建:model = Sequential()
model.add(LSTM(neurons, return_sequences=True, input_shape=(inputs.shape[1], inputs.shape[2]), activation=activ_func))
model.add(Dropout(dropout))
model.add(LSTM(neurons, return_sequences=True, activation=activ_func))
model.add(Dropout(dropout))
model.add(LSTM(neurons, activation=activ_func))
model.add(Dropout(dropout))
model.add(Dense(units=output_size))
model.add(Activation(activ_func))
model.compile(loss=loss, optimizer=optimizer, metrics=['mae'])
model.summary()
plot_keras_model(model, show_shapes=True, show_layer_names=Fal