from_dist_to_loss {deepregression}R Documentation

Function to transform a distritbution layer output into a loss function

Description

Function to transform a distritbution layer output into a loss function

Usage

from_dist_to_loss(
  family,
  ind_fun = function(x) tfd_independent(x),
  weights = NULL
)

Arguments

family

see ?deepregression

ind_fun

function applied to the model output before calculating the log-likelihood. Per default independence is assumed by applying tfd_independent.

weights

sample weights

Value

loss function


[Package deepregression version 1.0.0 Index]