IsolatedSpeechRecognition icon indicating copy to clipboard operation
IsolatedSpeechRecognition copied to clipboard

Getting error in executing the Isolated_Speech_Recognition.py

Open hkroclee opened this issue 5 years ago • 1 comments

in Isolated_Speech_Recognition.py, StratifiedShuffleSplit was imported from sklearn.cross_validation, I just make changes and import StratifiedShuffleSplit from sklearn.model_selection, to remove DeprecationWarning,

now I got the error: Traceback (most recent call last): File "Isolated_Speech_Recognition.py", line 269, in _ = [model.train(X_train[y_train == y, :, :]) for m, y in zip(ms, ys)] File "Isolated_Speech_Recognition.py", line 269, in _ = [model.train(X_train[y_train == y, :, :]) for m, y in zip(ms, ys)] NameError: name 'model' is not defined

hkroclee avatar Mar 25 '19 03:03 hkroclee

you need to use the variable m instead of the model there

bhaskarkvvsr avatar Sep 30 '20 05:09 bhaskarkvvsr