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
Should we keep data_weights that was dropped in commit 304ac9b? Or make Binomial family take a trials keyword. Use case, you have the success rate, but you also have a different number of trials for each observation in a separate variable. It's more convenient to not have to convert to success, failure.
I've never before looked through this part of the code.
I think we need to support frequency and case weights in general, having a specific option for binomial looks strange to me. The initial weights are defined through endog but it's a bit strange that the weight handling is only done in fit, AFAICS.
Do we have unit tests that check that the weights are properly included in all the Results?
I couldn't see any.
Binomial/Binary is special in that we can reconstruct binary data from caseweights plus success rate.
The standard coding with case weights would have two rows, one with successes (y=1, case_weights=number of successes) and a corresponding one with failures (y=0)
endog in this case would be 1-d with a separate 1-d case_weights (or freq_weights)
Activity
jseabold commentedon Jul 17, 2012
I'm +1'ing myself for adding back data_weights or maybe making it an option to the Binomial family is possible.
jseabold commentedon Jul 17, 2012
Relatedly, predict should have an option to predict the number of events rather than just returning the probabilities
josef-pkt commentedon May 4, 2014
http://stackoverflow.com/questions/23339416/is-there-a-way-to-implement-sample-weights-in-python-logistic-regression
I've never before looked through this part of the code.
I think we need to support frequency and case weights in general, having a specific option for binomial looks strange to me. The initial weights are defined through
endogbut it's a bit strange that the weight handling is only done infit, AFAICS.Do we have unit tests that check that the weights are properly included in all the
Results?I couldn't see any.
josef-pkt commentedon May 4, 2014
Binomial/Binary is special in that we can reconstruct binary data from caseweights plus success rate.
The standard coding with case weights would have two rows, one with successes (y=1, case_weights=number of successes) and a corresponding one with failures (y=0)
endog in this case would be 1-d with a separate 1-d case_weights (or
freq_weights)josef-pkt commentedon May 4, 2014
adding temporarily label
prio-highto check examples and unit testsjosef-pkt commentedon Jan 13, 2015
check and triage for 0.7
I have no idea
josef-pkt commentedon Feb 12, 2015
not urgent, this is a refactoring that doesn't fit a generic pattern, maybe in 0.8