esem.abc_sampler.ABCSampler.get_implausibility¶
- ABCSampler.get_implausibility(sample_points, batch_size=1)¶
Calculate the implausibility of the provided sample points, optionally in batches.
Note this calculates an array of shape (n_sample_points, n_obs) and so can easily exceed available memory if not used carefully.
- Parameters
sample_points (
ndarray
orDataFrame
) – The sample points to calculate the implausibility forbatch_size (
int
) – The size of the batches in which to calculate the implausibility (useful for large samples)
- Returns
Cube
– A cube of the impluasibility of each sample against each observation