yuxiangw / autodp

autodp: A flexible and easy-to-use package for differential privacy
Apache License 2.0
265 stars 53 forks source link

Illustrating how to use calibrator for a complex mechanism #18

Closed yuxiangw closed 3 years ago

yuxiangw commented 3 years ago

created using Transformers and Mechanisms.

Main updates are:

  1. A set_all_representation function in the based autodp.Mechanism class. This function takes a mechanism object and simply set all description of the current mechanism to be that of the input mechanism. This is different from propogate_update because it does not try converting one representation to others, but simply take what is given. This is useful for declaring mechanism class using a mechanism object.

  2. Adding Example 5 to tutorial_calibrator to illustrate how to do the above.