pykelihood.metrics.
bootstrap#
- bootstrap(metric, bootstrap_method)#
Bootstrap utility. Flexible enough to be used with any metric and bootstrap method.
- Parameters:
metric (Callable[[Distribution, Obs], float]) –
pykelihood.metricsobject.bootstrap_method (Callable[[Obs], Iterable[Obs]]) – Function that can be called on
Obsor sequences ofObs. For example,np.random.sample.
- Returns:
Value of the metric of interest averaged over bootstrapped data.
- Return type:
Callable