Learn R Programming

deepregression (version 2.2.0)

from_dist_to_loss_torch: Function to transform a distribution layer output into a loss function

Description

Function to transform a distribution layer output into a loss function

Usage

from_dist_to_loss_torch(family, weights = NULL)

Value

loss function

Arguments

family

see ?deepregression

weights

sample weights