Overview
Outlier Detection
Adversarial Detection
Drift Detection
Examples
Datasets
Models
API reference
alibi_detect.utils.sampling.
reservoir_sampling
Apply reservoir sampling.
X_ref (ndarray) – Current instances in reservoir.
ndarray
X (ndarray) – Data to update reservoir with.
reservoir_size (int) – Size of reservoir.
int
n (int) – Number of total instances that have passed so far.
Updated reservoir.