Get zero grade in all exercises

For all exercises, I got this error “Grader found global variables inside graded fuctions. Please avoid using global variables in your functions.”

I verified all of my functions, even I refreshed the environment, with new notebook did all my changes again. Still getting the same error.

Hey @Mostafa_Khedr,
Welcome to the community. As the error makes it very obvious, you are not supposed to use any global variables inside your functions’ implementations, unless and until it’s been explicitly stated to do so. Please ensure that you have used the arguments passed into the functions, instead of their corresponding global variables. I hope this helps.

Cheers,
Elemento

1 Like

there is no global variable i use local ones for every function

Hey @Mostafa_Khedr,
In that case, please DM me your notebook as an attachment, so that we can figure out the error, which is not possible from this error message.

Cheers,
Elemento

1 Like

Not sure if this is resolved, but remember encountering this issue last year when I was going through the course.

You might find this helpful:

So when defining train_model, please use “classifier”.