An error of unexpected indent appears

what is the error of my code?

That last code block (ending in return history…) is indented as if it is inside a function. And there is a comment indicating #GRADED FUNCTION: train_mnist, but there is no def train_mnist(…): so it looks like that was accidentally deleted. If you can’t figure out how to put it back, you can look in the FAQ to get a fresh baseline of the notebook.

1 Like