-
Notifications
You must be signed in to change notification settings - Fork 275
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
TypeError: __init__() got an unexpected keyword argument 'n_iter' #158
Comments
Can you provide a minimum example of what causes the error? |
Faced the same problem, it's coming from SGDRegressor
I think it's because, there's not agrument in SGDRegressor, 'n_iter'. Instead it's changed to 'max_iter' in the newer versions, as they added an argument for early stopping. |
@tanayag seems to be right, I have tryed to remove SGD and works. |
working on a speaker recognition code and while training the machine getting this:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\AKASHDEEP\AppData\Local\Programs\Python\Python38\lib\tkinter_init_.py", line 1883, in call
return self.func(*args)
File "C:\Users\AKASHDEEP\AppData\Local\Programs\Python\Python38\Speaker-Recognition\train.py", line 113, in train
traine(v1.get())
File "C:\Users\AKASHDEEP\AppData\Local\Programs\Python\Python38\Speaker-Recognition\GMM1.py", line 40, in traine
gmm = GMM(n_components = 16, n_iter = 200, covariance_type='diag', n_init = 10)
File "C:\Users\AKASHDEEP\AppData\Local\Programs\Python\Python38\lib\site-packages\sklearn\utils\validation.py", line 73, in inner_f
return f(**kwargs)
TypeError: init() got an unexpected keyword argument 'n_iter'
The text was updated successfully, but these errors were encountered: