I consider sklearn
's TweedieRegressor
a general solution for all types of regression, as it is a GLM model. If I understand well, that means any regression type can be obtained by appropriately parametrizing TweedieRegressor
.
Logistic regression is a special case of GLM.
I guess, to have logistic regression there should be a logit
value (or something like that) for the link
parameter, but there is no such possibility.
Can TweedieRegressor
be parametrized to do logistic regression?
If yes, how? If not, why not?
sklearn
offers a separate function for those distributions! $\endgroup$GeneralizedLinearModel
class to do most of the heavy lifting, andTweedieRegressor
does very little else, so aside from the modules not being public, one should be able to build an arbitrary GLM(?). $\endgroup$