Skip to content

Commit

Permalink
fix: ranger did not receive num.threads = 1 during () (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jemus42 authored Oct 11, 2023
1 parent 6e2af9e commit be40f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/learner_ranger_surv_ranger.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ delayedAssign(
.predict = function(task) {
pv = self$param_set$get_values(tags = "predict")
newdata = ordered_features(task, self)
prediction = predict(object = self$model, data = newdata)
prediction = invoke(predict, object = self$model, data = newdata, .args = pv)
mlr3proba::.surv_return(times = prediction$unique.death.times, surv = prediction$survival)
}
)
Expand Down

0 comments on commit be40f64

Please sign in to comment.