View source: R/helpers_pycox.R
get_pycox_callbacks | R Documentation |
Helper function to return torchtuples callbacks from torchtuples.callbacks
.
get_pycox_callbacks(
early_stopping = FALSE,
best_weights = FALSE,
min_delta = 0,
patience = 10L
)
early_stopping |
|
best_weights |
|
min_delta |
|
patience |
|
if (requireNamespaces("reticulate")) {
get_pycox_callbacks(early_stopping = TRUE)
get_pycox_callbacks(best_weights = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.