Description Usage Arguments Value

View source: R/deepregression.R

Function to transform a distritbution layer output into a loss function

1 2 3 4 5 | ```
from_dist_to_loss(
family,
ind_fun = function(x) tfd_independent(x),
weights = NULL
)
``` |

`family` |
see |

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

`weights` |
sample weights |

loss function

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.