Can’t compile the student’s code. unexpected indent (student_solution.py, line 8)
Hi
I’m stuck with the autograder on wk2 of this course, even though the code runs fine.
The autograder fails to grade my work properly. It says that it cannot compile my code because of an unexpected indent.
But on line 8 this is where I implement the on_epoch_end method:
class myCallback(tf.keras.callbacks.Callback):
def on_epoch_end(self, epoch, logs={}):
if(logs.get('acc') >= 0.99):
print("Reached 99% accuracy so cancelling training!")
self.model.stop_training = True
Again the code runs fine. I’ve tried the autograder 8 times already. I’m not sure what to do.
Any help is greatly appreciated. Many thanks!
