Instead of print("Test MAE: {model.evaluate(test_dataset)[1]:.2f}") it should be: print(f"Test MAE: {model.evaluate(test_dataset)[1]:.2f}")