mbi.LinearMeasurement

class mbi.LinearMeasurement(noisy_measurement: ~jax.Array, clique, stddev: float = 1.0, query: ~collections.abc.Callable[[~mbi.factor.Factor], ~jax.Array] = <function Factor.datavector>)[source]

Bases: object

A class for representing a private linear measurement of a marginal.

noisy_measurement

The noisy measurement of the marginal.

Type:

jax.Array

clique

The clique (a tuple of attribute names) defining the marginal.

Type:

tuple[str, …]

stddev

The standard deviation of the noise added to the measurement.

Type:

float

query

A linear function that, when applied to a Factor, extracts a

Type:

collections.abc.Callable[[mbi.factor.Factor], jax.Array]

a vector with the same shape and interpretation as `noisy_measurement`.

Method generated by attrs for class LinearMeasurement.

Methods

__init__

Method generated by attrs for class LinearMeasurement.

Attributes

noisy_measurement

clique

stddev

query

noisy_measurement: Array
clique: tuple[str, ...]
stddev: float
query: Callable[[Factor], Array]