Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy43 committed Nov 6, 2023
1 parent ebd5a24 commit 270f452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autodp/transformer_zoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ def update_params(self, mechanism_list):


# composition of only Gaussian mechanisms
class ComposeGaussian(Composition):
class ComposeGaussian(Transformer):
""" CompositionGaussian is a specialized composation function of ONLY Guassian mechanisms
output a Mechanism that represents the composed mechanism"""
def __init__(self):
Composition.__init__(self)
self.name = 'ComposeGaussian'

def compose(self, mechanism_list, coeff_list, RDP_compose_only=True, BBGHS_conversion=True, fDP_based_conversion=True):
def compose(self, mechanism_list, coeff_list):
# Make sure that the list contains only Gaussian mechanisms
for mech in mechanism_list:
assert(isinstance(mech, mechanism_zoo.GaussianMechanism)
Expand Down

0 comments on commit 270f452

Please sign in to comment.