Closed ShreeshaM07 closed 5 months ago
I was thinking of extending the previously written code for GLMRegressor
by adding parameters family
and link
where family
will have the type of distribution like Normal
,Poisson
or Gamma
and the link
will be the various available links for the respective family. They will be passed as strings
and then converted to the object instance internally maybe with an adapter class.
FYI @fkiraly, @julian-fong .
Sounds good to me! Actually this is potentially a dup of #230. Some of the ideas there may coincide with this issue
Actually this is potentially a dup of https://github.com/sktime/skpro/issues/230. Some of the ideas there may coincide with this issue
I'd say, subset - #230 is more of an umbrella issue. I will add a link to this issue there.
Is your feature request related to a problem? Please describe.
The existing
GLMRegressor
supports only the Gaussian family and in that specifically only theIdentity
link function. There are many other family like Poisson, Binomial, Negative Binomial , Gamma that can be implemented and each of these having a set of safelink
functions of their own. So the idea would be to support these different family and theirlink
function in order to make theGLMRegressor
of more broader use.Describe the solution you'd like
Currently the
_glm.py
in skpro is only using theGaussian
family and its defaultlink
function interfaced from statsmodels. However we can extend this to support multiple link functions and different families by either adding an adapter for this to convert the available families instatsmodels
toskpro
BaseDistributions available.