powered by
Helper function to return torchtuples callbacks from torchtuples.callbacks.
torchtuples.callbacks
get_pycox_callbacks( early_stopping = FALSE, best_weights = FALSE, min_delta = 0, patience = 10L )
(logical(1)) If TRUE then constructs torchtuples.callbacks,EarlyStopping.
(logical(1))
TRUE
torchtuples.callbacks,EarlyStopping
(logical(1)) If TRUE then returns torchtuples.callbacks.BestWeights. Ignored if early_stopping is TRUE.
torchtuples.callbacks.BestWeights
early_stopping
(numeric(1)) Passed to torchtuples.callbacks.EarlyStopping.
(numeric(1))
torchtuples.callbacks.EarlyStopping
(integer(1)) Passed to torchtuples.callbacks.EarlyStopping.
(integer(1))
# NOT RUN { if (requireNamespaces("reticulate")) { get_pycox_callbacks(early_stopping = TRUE) get_pycox_callbacks(best_weights = TRUE) } # } # NOT RUN { # }
Run the code above in your browser using DataLab