This function is a wrapper around the
logs_sample()
function from the
scoringRules package.
The log score is the negative logarithm of the predictive density evaluated
at the observed value.
The function should be used to score continuous predictions only.
While the Log Score is in theory also applicable
to discrete forecasts, the problem lies in the implementation: The function
uses a kernel density estimation, which is not well defined with
integer-valued Monte Carlo Samples.
See the scoringRules package for more details and alternatives, e.g.
calculating scores for specific discrete probability distributions.