from_dist_to_loss: Function to transform a distritbution layer output into a...

Description Usage Arguments Value

View source: R/deepregression.R

Description

Function to transform a distritbution layer output into a loss function

Usage

1
2
3
4
5
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


deepregression documentation built on Oct. 5, 2021, 1:06 a.m.