Skip to content

Commit

Permalink
make BART training compatible for windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
bblodfon committed Nov 6, 2024
1 parent e09b946 commit 1417d6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/learner_BART_surv_bart.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ LearnerSurvLearnerSurvBART = R6Class("LearnerSurvLearnerSurvBART",
times = truth[, 1]
delta = truth[, 2] # delta => status

.fun = ifelse(.Platform$OS.type == "windows", BART::surv.bart, BART::mc.surv.bart)

list(
model = invoke(
BART::mc.surv.bart,
.fun,
x.train = x.train,
times = times,
delta = delta,
Expand Down

0 comments on commit 1417d6a

Please sign in to comment.