from_preds_to_dist_torch {deepregression} | R Documentation |
Define Predictor of a Deep Distributional Regression Model
Description
Define Predictor of a Deep Distributional Regression Model
Usage
from_preds_to_dist_torch(
list_pred_param,
family = NULL,
output_dim = 1L,
mapping = NULL,
from_family_to_distfun = make_torch_dist,
from_distfun_to_dist = from_distfun_to_dist_torch,
add_layer_shared_pred = function(input_shape, units) layer_dense_torch(input_shape =
input_shape, units = units, use_bias = FALSE),
trafo_list = NULL
)
Arguments
list_pred_param |
list of output(-lists) generated from
|
family |
see |
output_dim |
dimension of the output |
mapping |
a list of integers. The i-th list item defines which element
elements of |
from_family_to_distfun |
function to create a |
from_distfun_to_dist |
function creating a torch distribution based on the
prediction tensors and |
add_layer_shared_pred |
layer to extend shared layers defined in |
trafo_list |
a list of transformation function to convert the scale of the additive predictors to the respective distribution parameter |
Value
a list with input tensors and output tensors that can be passed
to, e.g., torch_model