解决了
损失只会保存到历史记录中。我正在运行迭代,而不是使用Keras内置的epochs选项。
所以现在我没有进行4次迭代
model.fit(......, nb_epoch = 4)
现在,它返回每次运行的损失:
print(hist.history){'loss': [1.4358016599558268, 1.399221191623641, 1.381293383180471, h1.3758836857303727]}
解决了
损失只会保存到历史记录中。我正在运行迭代,而不是使用Keras内置的epochs选项。
所以现在我没有进行4次迭代
model.fit(......, nb_epoch = 4)
现在,它返回每次运行的损失:
print(hist.history){'loss': [1.4358016599558268, 1.399221191623641, 1.381293383180471, h1.3758836857303727]}