Skip to content

Commit 475f8fa

Browse files
committed
roll back unintended change in initialization
1 parent e6f718f commit 475f8fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/helper.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ extract_prediction = function(obj_resampling, learner_class, n_obs,
180180
}
181181
} else {
182182
n_obj_rsmp = length(obj_resampling)
183-
preds = as.numeric(rep(NA, n_obs))
183+
preds = vector("list", n_obj_rsmp)
184184
for (i_obj_rsmp in 1:n_obj_rsmp) {
185185
preds_vec = vector("numeric", length = n_obs)
186186
f_hat = as.data.table(obj_resampling[[i_obj_rsmp]]$prediction("train"))

0 commit comments

Comments
 (0)