New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider extending glms, esp. glmboost to other compositions #28
Comments
I think the best way to extend would be an abstract compositor/reductor: take one method for the conditional risk, and then have one compositor/reductor per different strategy based on how you arrive at a conditional hazard function. Possibly sitting in one inheritance sub-tree. At some point, I also think it would be nice that there is a "proportional hazards" compositor, that takes a risk predictor and a baseline hazard estimator. Given many of the "on-shelf" (i.e., described in literature but not properly implemented) methods are obtained in this way. |
Whilst a nice idea in principle I think this is against the |
However you could have a transformer that changes the default compositor method to another? |
I don't think there are mlr3 design conventions about task reduction and composition that go beyond the pipeline formalism? (are there?) The problem is there are multiple possible choices by which you can convert/compose a risk prediction to a distribution prediction. I agree that it might be nice to have one of these (the "default") just as a "reduction" step rather than a 2-argument-compositor. On the second suggestion, having a transformer that mutates hyper-parameters of the compositor, I think that's a hack rather than a sound (or generalizable) design. |
No there are not
This isn't exactly what I meant. More that these are two distinct options. First assume this applies to models that predict a linear predictor only. Then Case 1 Model includes two hyper-parameters:
Then the linear predictor is returned by the prediction method and composed using the selected estimation method with the selected model type. Case 2 A models prediction returns a linear predictor, which is then passed to an abstract compositor which would look roughly like lp2surv(lp, method = "Breslow", model_type = "PH") Which returns a The problem with Case 2 is that this means a survival learner will only return a linear predictor. I think the sensible compromise is that a survival learner returns a linear predictor and a default composition method. Then the compositor can ignore the default survival distribution and only use the linear predictor for the transformation. However, the problem here is that |
Currently
glmnet
,cv.glmnet
andglmboost
all assume a proportional hazards form for thedistr
return type. This is natural forglmnet
andcv.glmnet
who are fit with a Cox link howeverglmboost
can be fit using multiple families. Whilst I don't think it's incorrect for the only composition to be Cox PH, I think adding other options in the future would be a good addition.The text was updated successfully, but these errors were encountered: