komanawa.BASE.generators.base_sampled_param#
created matt_dumont on: 13/05/24
Classes#
Schema for a sampled parameter which captures the distribution and arguments for the distribution to check that the distribution is valid and has not changed. |
Module Contents#
- class BaseSampledParam(distribution, *args, **kwargs)#
Schema for a sampled parameter which captures the distribution and arguments for the distribution to check that the distribution is valid and has not changed.
- Parameters:
distribution – The distribution to use (e.g. scipy.stats.uniform, scipy.stats.norm)
args – The arguments to pass to the distribution
kwargs – The keyword arguments to pass to the distribution
- serialize()#
Serialize the object to a unique string to capture metadata
- Returns: