Last active
April 18, 2021 08:20
-
-
Save RaphaelS1/95e419bf2853dbf731ae0cbce243aab3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## learners are stored in mlr3extralearners | |
library(mlr3extralearners) | |
## load learners | |
learners <- lrns( | |
paste0("surv.", c("coxtime", "deephit", "deepsurv", "loghaz", "pchazard")), | |
frac = 0.3, early_stopping = TRUE, epochs = 10, optimizer = "adam" | |
) | |
# apply our function | |
learners <- lapply(learners, create_autotuner) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment