You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> mdf = md.fit(method='minimize', min_method = 'dogleg')
File "...\statsmodels\regression\mixed_linear_model.py", line 1936, in fit
raise ValueError("Argument %s not allowed for MixedLM.fit" % x)
ValueError: Argument min_method not allowed for MixedLM.fit
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
On Tue, Apr 11, 2017 at 12:02 PM, Josef Perktold ***@***.***> wrote:
I wanted to try the new minimize optimization with dogleg, but MixedLM
uses a whitelist for kwargs.
using example from #3604
<#3604>
>>> mdf = md.fit(method='minimize', min_method = 'dogleg')
File "...\statsmodels\regression\mixed_linear_model.py", line 1936, in fit
raise ValueError("Argument %s not allowed for MixedLM.fit" % x)
ValueError: Argument min_method not allowed for MixedLM.fit
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3605>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ACiwwzjnD9jxNpA7TpJtuX25wDvuuxYIks5ru6QHgaJpZM4M6T0l>
.
Fixed by commit e6f2f84: the hard ValueError was replaced with a RuntimeWarning for disallowed optimizer kwargs, exactly as suggested in this thread. Note: min_method still is not in the allowed-kwargs list, so it is silently stripped (with a warning) rather than passed through - happy to file that as a narrow follow-up enhancement if you want method=minimize sub-methods to actually take effect. Closing as fixed for the reported crash.
Activity
kshedden commentedon Apr 11, 2017
bashtage commentedon Jul 30, 2026
Fixed by commit e6f2f84: the hard ValueError was replaced with a RuntimeWarning for disallowed optimizer kwargs, exactly as suggested in this thread. Note: min_method still is not in the allowed-kwargs list, so it is silently stripped (with a warning) rather than passed through - happy to file that as a narrow follow-up enhancement if you want method=minimize sub-methods to actually take effect. Closing as fixed for the reported crash.