OpenMined / PyDP

The Python Differential Privacy Library. Built on top of: https://github.com/google/differential-privacy
Apache License 2.0
507 stars 138 forks source link

Count class constructor is missing some arguments #276

Closed thefirebanks closed 4 years ago

thefirebanks commented 4 years ago

Description

Count class constructor is missing some arguments, such as l0_sensitivity, in line 10.

How to Reproduce

Try to initialize a Count instance with l0_sensitivity:

x = Count(epsilon=math.log(3), l0_sensitivity=3, dtype="int")

We get a TypeError:

TypeError: __init__() got an unexpected keyword argument 'l0_sensitivity'

Expected Behavior

The MetaAlgorithm superclass supports many kwargs, we should include them in Count as well!