Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error in executing the Isolated_Speech_Recognition.py #4

Open
hkroclee opened this issue Mar 25, 2019 · 1 comment
Open

Getting error in executing the Isolated_Speech_Recognition.py #4

hkroclee opened this issue Mar 25, 2019 · 1 comment

Comments

@hkroclee
Copy link

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

@bhaskarkvvsr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants