MeasurementStrategy#

from tmlt.synthetics import MeasurementStrategy
class tmlt.synthetics.MeasurementStrategy#

Bases: ABC

A strategy for measuring differentially private aggregates.

abstract property weight: int#

Weight for determining privacy budget allocated for this strategy.

abstract compute(session, source_id, budget, keysets, clamping_bounds)#

Compute answers using this strategy.

Return type:

List[MarginalAnswer]