API reference

andrey.data.measurement.Measurements#

class andrey.data.measurement.Measurements(*, parents, noise, noise_scale)[source]#

The measurement columns added to a dataset, each a variable plus independent noise.

andrey.data.measurement.noisy_children() describes them and measurements= on sample() draws them.

Parameters:
  • parents (dict[int, int]) – Each measurement column mapped to the column it measures, both as columns of the returned data, in ascending order of the measurement columns. In the true graph the measured column is the measurement column’s only parent.

  • noise (str) – The family of the measurement noise (for example, "gaussian").

  • noise_scale (float) – The standard deviation of the measurement noise, as a multiple of the standard deviation of the measured column.