loghaz | 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.
loghaz(
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,
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 |
|
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.LogisticHazard
.
An object inheriting from class loghaz
.
An object of class survivalmodel
.
Gensheimer, M. F., & Narasimhan, B. (2018). A Simple Discrete-Time Survival Model for Neural Networks, 1–17. https://doi.org/arXiv:1805.00917v3
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.