Repository navigation
BUG: regression, allow remove_data to remove wendog, wexog, wresid - #7595
Conversation
|
unit test for pickle size have been watered down, so they don't fail anymore even if some arrays are not removed 7d1f096#diff-9d0080706eec612b4e32badb782c7495e9444606bb967b66f9823e30d06caaf6L82 https://github.com/statsmodels/statsmodels/pull/6311/files |
|
If I use a reduction by a factor of 10 compared to original size, then unit test for wls fails if wendog is not removed However, factor 10 does not work for formulas because the reduction in pickle size is not very large (we need to keep original data) |
|
using 0.1, and 0.5 for required reduction factor, then if I exclude so this looks fine as threshold, but it might not be binding in all cases (I didn't check all test cases) |
| pred = model.get_prediction([1]) | ||
| one_d = pred.predicted_mean | ||
| assert_allclose(scalar, one_d) | ||
| # smoke test for inferenctial part |
|
all green, merging |
This partially reverts changes in OLS for remove_data in #6888, now wendog, wexog and wresid are removed again
reported in #7494 (comment)
unit test changed to call results
scalebefore remove_data, so that get_prediction works #6887This does not revert changes other than wendog, wexog and wresid
e.g. RLMsresidis not removed after 6888, which I guess can also be reverted.correction, I read that part too fast, sresid is in cache list and is removed.
(In unit test case, RLM size shrinks to less than 3% of original size)
open question: Why did unit tests not catch that remove_data didn't remove the
wxxxarrays?