nllFun: Negative Log Likelihood and components

View source: R/calibScores.R

nllFunR Documentation

Negative Log Likelihood and components

Description

Negative Log Likelihood and components

Usage

nllFun(E, u)

Arguments

E

(vector) errors

u

(vector) prediction uncertainties

Value

A list with the nll and the calibration and sharpness scores

Examples


  uE = sqrt(rchisq(1000, df = 4))  # Re-scale uncertainty
  E  = rnorm(uE, mean=0, sd=uE)    # Generate errors
  nllFun(E, uE)


ppernot/ErrViewLib documentation built on June 1, 2024, 4:33 a.m.