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
I don't really understand this _get_const_index(model.exog) just uses np.where
However, this code is outdated since const_idx is now attache to the model or model.data
Same code is in GEE (copied and adjusted from discrete)
no smoketests for summary method in test suite.
discrete margins are only tested on Logit, AFAICS
(I haven't installed numpy 1.11.0.bxxx yet because I either don't remember how to set up a virtualenv, or the python built in virtualenv in 3.4 doesn't work properly, or it's because pip hates me back)
the problem is that const_idx is a 1d array with one element, which cannot be used for indexing or popping a python list.
The newer code in base data squeezes: np.where(...)[0].squeeze()
AFAIK, the model const_idx is used quite often and should have proper functional unit test coverage
Activity
josef-pkt commentedon Feb 16, 2016
I don't really understand this
_get_const_index(model.exog)just uses np.whereHowever, this code is outdated since const_idx is now attache to the model or model.data
Same code is in GEE (copied and adjusted from discrete)
no smoketests for
summarymethod in test suite.discrete margins are only tested on Logit, AFAICS
(I haven't installed numpy 1.11.0.bxxx yet because I either don't remember how to set up a virtualenv, or the python built in virtualenv in 3.4 doesn't work properly, or it's because pip hates me back)
josef-pkt commentedon Feb 16, 2016
the problem is that const_idx is a 1d array with one element, which cannot be used for indexing or popping a python list.
The newer code in base data squeezes:
np.where(...)[0].squeeze()AFAIK, the model const_idx is used quite often and should have proper functional unit test coverage
theaverageguy commentedon Mar 22, 2016
@kshedden Fixed?
kshedden commentedon Mar 22, 2016
I was not planning to fix this in Logit, I have not worked on that code at
all.
I have a pending PR (#2833) that fixes the same bug in GEE. There are a
few more things that I need to deal with there before it can be merged
though.
On Tue, Mar 22, 2016 at 9:41 AM, theaverageguy [email protected]
wrote:
josef-pkt commentedon Jun 22, 2016
looks like we missed this one for 0.8.0rc1, I had thought it was incorporated somewhere
josef-pkt commentedon Aug 15, 2016
The error was fixed in #3037, example runs fine with master
it still uses the outdated pattern with
_get_const_index(model.exog), not urgentjosef-pkt commentedon May 27, 2017
I opened #3719 for the refactoring issue, so I can close this as fixed.