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
Possibly connected with mlr3extralearners, mboost.
Reproducible example
library(mlr3proba)
#> Loading required package: mlr3#> Warning: package 'mlr3' was built under R version 4.2.2
library(mlr3extralearners)
library(survival)
task_veteran<- as_task_surv(veteran, time="time", event="status", type="right")
learner_ranger<- lrn("surv.blackboost")
learner_ranger$train(task_veteran)
learner_ranger$predict_newdata(veteran[1, -c(3, 4)])
#> Error in `colnames<-`(`*tmp*`, value = rownames(newdata)): attempt to set 'colnames' on an object with less than two dimensions
Description
I tried to debug it, and the actual error occurred in this line
https://github.com/mlr-org/mlr3/blob/435c9d13fae39ef3f3f6cf40cbfae6fc9d19a039/R/worker.R#L175-L182
Possibly connected with
mlr3extralearners
,mboost
.Reproducible example
Created on 2023-01-13 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: