DensityScore._kernel_log_score#
- DensityScore._kernel_log_score()[source]#
Negative log predictive density by Gaussian kernel, per cell.
One call of
_core’s_kernel_log_scoreper horizon, each estimating the density of every series’ draws at that horizon with Silverman’s bandwidth and evaluating it at the outcome; stacked to(h, k).Example
>>> import numpy as np >>> rng = np.random.default_rng(0) >>> scorer = DensityScore(rng.standard_normal((500, 3, 2)), rng.standard_normal((3, 2))) >>> scorer._kernel_log_score().shape (3, 2)