Compile a Deep Distributional Regression Model (Torch)
torch_dr(
list_pred_param,
optimizer = torch::optim_adam,
model_fun = NULL,
monitor_metrics = list(),
from_preds_to_output = from_preds_to_dist_torch,
loss = from_dist_to_loss_torch(family = list(...)$family, weights = NULL),
additional_penalty = NULL,
...
)
a luz_module_generator
list of output(-lists) generated from
subnetwork_init
optimizer used. Per default Adam
NULL not needed for torch
Further metrics to monitor
function taking the list_pred_param outputs and transforms it into a single network output
the model's loss function; per default evaluated based on
the arguments family
and weights
using from_dist_to_loss
a penalty that is added to the negative log-likelihood; must be a function of model$trainable_weights with suitable subsetting (not implemented for torch)
arguments passed to from_preds_to_output
vector of positive values; optional (default = 1 for all observations)