Urban Sound Classification

machine_learning

#1

I am getting

NameError: name ‘train’ is not defined

this error when we try to print out sound graphs on jackhammer,drilling,dog_barking.

Tried to search on internet couldn’t find any solution. It would be a big help if anyone could provide a solution to this.


#2

Hi @soham25,

This error occurs because you have not defined the train file. Make sure the spelling is correct. Also, python is case sensitive, which means train is different from Train. If you have taken care of all of these points, run the code again, there is a chance that during some preprocessing, you might have changed the name.