Train_dr not defined error

I have clearly defined train_dir in my notebook but still getting the message below when I submit it for grading. Due to this I am unable to pass the assignment (75%). Please can you look into this?


Please click my name and message your notebook as an attachment.

Hi Abhijit! When working on graded functions, please use the parameters declared in the function header. From the error message, it seems like you’re using a global variable in your solution. Take note that there are two arguments given for that function, i.e. TRAINING_DIR and VALIDATION_DIR. Try to use those in your solution and see if it gets rid of the error. Hope this helps!