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
Add lp2distr and risk2distr compositor #31
Comments
Just to add two points to this:
|
And to add to my thoughts here is some pseudo-code for how I envisage this functioning. Assume that the compositor is one Let h2 be the hazard function for learner 2 (lrn2) and lp1 be the linear predictor for learner 1 (lrn1), analogously for other abbreviations. lrn1 contains the relative risks and lrn2 is the baseline distribution if (!missing(h2)){
if(!missing(lp1))
h(t) = h2(t)*exp(lp1)
else
h(t) = h2(t)*crank1
}
if (!missing(S2)){
if(!missing(lp1))
S(t) = S2(t)^exp(lp1)
else
S(t) = S2(t)^crank1
}
f(t) = try(h(t)*S(t))
F(t) = try(1 - S(t))
distr(pdf = f(t), cdf = F(t)) This makes the following assumptions:
|
Given discussion last week (about PipeOps etc), I'm trying to give answers to the original questions.
|
Regarding the second post: the question of what to do with generic models that return I'd be for a variant of (c), the user can build all rubbish models they want, perhaps they aren't all rubbish, and the benchmarking workflow tells them how rubbish the models actually are. |
Regarding the compositor, third post: I'd be in favour of a more fine-grained user control on which output is used to make the |
Using
mlr3pipelines
, add a compositor (node in pipelines) that takes three inputs: a learner, an estimator, a model form.In
mlr3pipelines
notation this would look something likeBut I suggest some sugar of the form
Two open questions:
crank
todistr
the other forlp
todistr
. In the former case this may only make sense for PH models, whereas in the latterlp
works for PH, AFT and PO models.The text was updated successfully, but these errors were encountered: