Programming Assignment: Probability Distributions / Naive Bayes

Dear all,

My exercise get graded 0 in all its exercise, the message error that I have is:“There was a problem compiling the code from your notebook. Details:
name ‘feature’ is not defined”

I don’t know how to sort it out, help me please.

regards
Gianni

There are lots of ways that the grader can give you a score of 0. Sometimes the error message it gives is very confusing.

But let’s start with the basic checks:

  • Perhaps you used the variable name “feature” where it was a global variable. That will break the grader. Check for each place in your notebook where you might have used a variable named “feature”. When you used “feature” was it a local variable, or a global variable?

  • Did you ever add any new cells to the notebook?

  • Did you ever delete a cell from the notebook, and then try to re-create it?

  • Did you add any code to the notebook outside of the area marked “START CODE HERE”? The grader really does not like unexpected changes to the functions.

Please reply here with your answers.

Dear Tom Mosher

  • Perhaps you used the variable name “feature” where it was a global variable. That will break the grader. Check for each place in your notebook where you might have used a variable named “feature”. When you used “feature” was it a local variable, or a global variable?

No I havent’ use any variable named “feature”

  • Did you ever add any new cells to the notebook?

No I did not

  • Did you ever delete a cell from the notebook, and then try to re-create it?

No I did not

  • Did you add any code to the notebook outside of the area marked “START CODE HERE”? The grader really does not like unexpected changes to the functions.

No I did not

Thank you very much for your assistance

Gianni

Thanks. Please see your personal messages for further instructions.