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
This is the (old) code that did the task transformation (the bj$ynew is the imputed times, see R package bujar):
.bj = function(backend, status, time) {
require_namespaces("bujar")
x = data.frame(backend)[, colnames(backend) %nin% c(time, status), drop = FALSE]
x = model.matrix(~., x)[, -1L]
bj = invoke(bujar::bujar,
y = backend[[time]],
cens = backend[[status]],
x = x,
tuning = FALSE,
vimpint = FALSE,
.args = self$param_set$get_values(tags = "bj")
)
backend[[time]] = bj$ynew
return(backend)
},
Regression learner would predict the survival times, so we can map that back to the response survival prediction type and set crank = -response (which the PipeOpPredRegrSurv had done incorrectly)
The text was updated successfully, but these errors were encountered:
bblodfon
changed the title
Implemente Surv => Regr pipeline using Buckley-James censoring imputation
Surv => Regr pipeline using Buckley-James censoring imputation
Oct 25, 2024
bblodfon
changed the title
Surv => Regr pipeline using Buckley-James censoring imputation
Surv => Regr pipeline using Buckley-James imputation
Oct 25, 2024
This is the (old) code that did the
task
transformation (thebj$ynew
is the imputedtimes
, seeR
package bujar):Regression learner would predict the survival times, so we can map that back to the
response
survival prediction type and setcrank = -response
(which thePipeOpPredRegrSurv
had done incorrectly)The text was updated successfully, but these errors were encountered: