compute_competition_log_score: Calculate "log scores" for the purpose of the competition -...

Description Usage Arguments Value

Description

Calculate "log scores" for the purpose of the competition – log[sum_i(p_i)] where p_i is the model's probability of bin i and i runs over some bins adjacent to the bin where the observed quantity was.

Usage

1
2
compute_competition_log_score(bin_log_probs, observed_bin,
  prediction_target)

Arguments

bin_log_probs

named numeric vector with log probability of each bin; names identify the bins

observed_bin

character vector with name(s) of the observed bin(s) (Note that peak can occur in multiple bins)

prediction_target

Value

log score for the given observation


reichlab/2018-2019-cdc-flu-contest documentation built on May 24, 2019, 7:36 a.m.