_no_privacy_enforce#
Logic for skipping constraint enforcement for the enforce_constraint option.
Functions#
Non-private version of Constraint._enforce. |
- change_metric_without_enforcing_constraint(constraint, child_transformation, child_ref, **kwargs)#
Non-private version of Constraint._enforce.
Enforcing constraints in non-private measurements is unnecessary because the second application of a constraint is just for the stability analysis, but when the privacy budget is infinite, the stability can be infinite anyway.
Instead, the constraints are enforced according to enforce_constraints in the NoPrivacyTransformationVisitor.visit_enforce class.
- Parameters
constraint (tmlt.analytics.constraints.Constraint) –
child_transformation (tmlt.core.transformations.base.Transformation) –
child_ref (tmlt.analytics._table_reference.TableReference) –
- Return type
Tuple[tmlt.core.transformations.base.Transformation, tmlt.analytics._table_reference.TableReference]