📅  最后修改于: 2022-03-11 14:57:05.340000             🧑  作者: Mango
The problem is that round is a built-in top level function, not a method on floats. Change:
history['test_acc'][-1].round(4)
to:
round(history['test_acc'][-1], 4)