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
In this case, the default fit function (newton) returns one array (newparams). However, LikelihoodModel.fit() expects 2. fit() then tries to unpack newparams into two variables, and thus gives the ValueError "too many values to unpack" (unless for some reason newparams is of length 2). (Ian Langmore on mailinglist)
if params is of length 2, using newton silently cuts off one parameter.
looking at the code, I also found that xopt is not defined in any of the full_output=False cases:
return xopt, retvals
UnboundLocalError: local variable 'xopt' referenced before assignment
The text was updated successfully, but these errors were encountered:
It looks to me like a lot of these are going to be broken if full_output = False. I wonder if it's a refactoring victim or if it ever worked... Need to think a bit about what we want and look at the new optimize interface in scipy for guidance.
full_output=False
In this case, the default fit function (newton) returns one array (newparams). However, LikelihoodModel.fit() expects 2. fit() then tries to unpack newparams into two variables, and thus gives the ValueError "too many values to unpack" (unless for some reason newparams is of length 2). (Ian Langmore on mailinglist)
if params is of length 2, using newton silently cuts off one parameter.
looking at the code, I also found that xopt is not defined in any of the full_output=False cases:
The text was updated successfully, but these errors were encountered: