View source: R/deepregression.R
dr_init | R Documentation |
Initializing a Distributional Regression Model
dr_init( n_obs, ncol_structured, list_structured, nr_params = 2, family, dist_fun = NULL, weights = NULL, monitor_metric = list(), output_dim = 1, mixture_dist = FALSE, ind_fun = function(x) x, extend_output_dim = 0, offset = NULL, additional_penalty = NULL, fsbatch_options = fsbatch_control(), optimizer = tf$keras$optimizers$SGD() )
n_obs |
number of observations |
ncol_structured |
a vector of length #parameters defining the number of variables used for each of the parameters. If any of the parameters is not modelled using a structured part the corresponding entry must be zero. |
list_structured |
list of (non-linear) structured layers (list length between 0 and number of parameters) |
nr_params |
number of distribution parameters |
family |
family specifying the distribution that is modelled |
dist_fun |
a custom distribution applied to the last layer,
see |
weights |
observation weights used in the likelihood |
monitor_metric |
see |
output_dim |
dimension of the output (> 1 for multivariate outcomes) |
mixture_dist |
see |
ind_fun |
see |
extend_output_dim |
see |
offset |
list of logicals corresponding to the paramters; defines per parameter if an offset should be added to the predictor |
additional_penalty |
to specify any additional penalty, provide a function
that takes the |
fsbatch_options |
options for Fellner-Schall algorithm, see
|
optimizer |
see |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.