Search code examples
pythontensorflowkerasdeep-learningprediction

NameError: name 'training_set' is not defined


I was trying to predict on a dataset but when I run the program it gives me the following error:

NameError: name 'training_set' is not defined

i just try this predict code from this:

NameError: name 'classifier' is not defined

but give me the error after running

(sorry for bad english)


Solution

  • It's probably because you had not defined 'training_set' on the code. It should be like training_set = insert_a_value_here above in the code like how you already defined test_image