aixd.sampler.sampler_definitions.sampler_kde
- aixd.sampler.sampler_definitions.sampler_kde(dobjects: List[DataObject], engine: SamplingEngine, callbacks_class: SamplingCallback | None = None) SamplesGenerator [source]
A KDE sampler that can be fit to some data, and then sample from its distribution
- Parameters:
dobjects (List[DataObject]) – List of DataObjects to sample from
engine (SamplingEngine) – To use for sampling
callbacks_class (SamplingCallback, default=None) – In case we want to run some function on the samples obtained in the sampling process. This is intended for advanced usage.
- Returns:
SamplesGenerator – The sampler object