Description Usage Arguments Value Examples
View source: R/loss_functions.R
Bernoulli likelihood: x = 0, 1; f(x,theta) = (theta^x)*(1-theta)^(1-x) Bernoulli log-likelihood: $$ ln(L) = sum_i=1^I sum_t=1^T D_i^C(t) * ln(P_i^C (t)) + (1 - D_i^C(t)) * ln(1 - P_i^C (t)) $$
| 1 | compute_log_lik(prediction, actual)
 | 
| prediction | Numeric vector same length as actual | 
| actual | Numeric vector same length as prediction | 
Numeric vector length one
| 1 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.