pchazard | R Documentation |
Logistic-Hazard fits a discrete neural network based on a cross-entropy loss and predictions of a discrete hazard function, also known as Nnet-Survival.
pchazard(
formula = NULL,
data = NULL,
reverse = FALSE,
time_variable = "time",
status_variable = "status",
x = NULL,
y = NULL,
frac = 0,
cuts = 10,
cutpoints = NULL,
scheme = c("equidistant", "quantiles"),
cut_min = 0,
activation = "relu",
custom_net = NULL,
num_nodes = c(32L, 32L),
batch_norm = TRUE,
reduction = c("mean", "none", "sum"),
dropout = NULL,
device = NULL,
early_stopping = FALSE,
best_weights = FALSE,
min_delta = 0,
patience = 10L,
batch_size = 256L,
epochs = 1L,
verbose = FALSE,
num_workers = 0L,
shuffle = TRUE,
...
)
formula |
|
data |
|
reverse |
|
time_variable |
|
status_variable |
|
x |
|
y |
|
frac |
|
cuts |
|
cutpoints |
|
scheme |
|
cut_min |
|
activation |
|
custom_net |
|
num_nodes , batch_norm , dropout |
|
reduction |
|
device |
|
early_stopping , best_weights , min_delta , patience |
|
batch_size |
|
epochs |
|
verbose |
|
num_workers |
|
shuffle |
|
... |
|
Implemented from the pycox
Python package via reticulate.
Calls pycox.models.PCHazard
.
An object inheriting from class pchazard
.
An object of class survivalmodel
.
Kvamme, H., & Borgan, Ø. (2019). Continuous and discrete-time survival prediction with neural networks. https://doi.org/arXiv:1910.06724.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.