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
{{ message }}
Repository navigation
ENH/REF get_distribution 2dim column_vector is annoying, results methods missing #8723
example: predict logpmf/loglike out of sample, similar to the in-sample loglikeobs
It's now relatively easy with get_distribution, but get_distribution has distribution parameters as 1-dim array with one column.
This is annoying if we have applications where we only need 1-dim.
Problem is that whether 1-dim distribution args is more convenient depends on the usage. But we don't know the intended usage when user calls get_distribution.
changed the title [-]ENH/REF get_distribution 2dim column_vector is annoying for 1-dim usage[/-][+]ENH/REF get_distribution 2dim column_vector is annoying, results methods missing[/+]on Apr 7, 2023
GLM families Poisson, ... that don't have scale, ignore scale and var_weights arguments in the family get_distribution method.
It would be better to raise an exception or at least a warning if those are not 1 or None.
We need the arguments for generic calling consistency, but they should not be different from no-op default.
Activity
[-]ENH/REF get_distribution 2dim column_vector is annoying for 1-dim usage[/-][+]ENH/REF get_distribution 2dim column_vector is annoying, results methods missing[/+]josef-pkt commentedon Apr 7, 2023
checking across models
discrete/tests/test_predict.py test_distr uses squeeze to handle inconsistency in shape of get_distribution.
josef-pkt commentedon Apr 7, 2023
Another "cleanup"
GLM families Poisson, ... that don't have scale, ignore scale and var_weights arguments in the family get_distribution method.
It would be better to raise an exception or at least a warning if those are not
1orNone.We need the arguments for generic calling consistency, but they should not be different from no-op default.
josef-pkt commentedon Apr 14, 2023
changed in #8780
get_distribution now returns 1-d
issue #106 is still open, so closing this