Граф коммитов

35 Коммитов

Автор SHA1 Сообщение Дата
Marlon a844f7200a
fix: determine points for mean computation based on inputs (#38)
* fix: determine points for mean computation based on inputs

* style: create upper log space simpler
2023-10-09 14:07:09 +01:00
Lukas Wutschitz a95c4e2d41
Bump version (#33) 2022-08-24 15:03:17 +01:00
Lukas Wutschitz 18ac87c583
Update readme (#32) 2022-08-22 09:37:24 +01:00
Lukas Wutschitz d1a672165f
Add composition of approximate DP guarantees (#31) 2022-08-17 14:56:09 +01:00
Lukas Wutschitz 9a1f39bcc8
Add convenience routines for DP-SGD (#28) 2022-07-21 19:27:22 +01:00
Lukas Wutschitz 846f96c9ec
Add Gaussian and pure DP mechanism (#30) 2022-07-21 15:54:37 +01:00
Lukas Wutschitz 25967d0bd0
Add laplace mechanism (#29)
Add the PRV for the Laplace mechanism. We also refactor the privacy random variable namespace to have one file per mechanism. A notebook is added explaining in more detail how other custom mechanisms may be added to the accountant.
2022-05-06 14:13:44 +01:00
Lukas Wutschitz c4f1b9a26c
Add heterogenous composition (#15) 2021-12-09 10:18:32 +00:00
Lukas Wutschitz 3c4f68d96f
Refactor `Composer` interface to allow for heterogeneous composition (#25)
* Prepare composer for hetero compo

* Update accountant for the new interface

* Add docstrings to composers

* Check against self.prvs in composers to make sure num_comp is correct

* Update error message

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-17 18:54:03 +00:00
Lukas Wutschitz 231e3f2b31
Add a strict `--fail-on-no-value` option to the compute epsilon script (#22)
* Add no fail option to dp script

* Rename command line arguments

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-17 15:23:25 +00:00
Lukas Wutschitz 77783cae78
Don't exit 0 with linter errors (#26)
* Cosmetic: Make linter happy

* Fix test safe log test

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-17 13:59:32 +00:00
Lukas Wutschitz d83df3af60
Fix github tag to point to latest release (#24)
Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-10 18:56:31 +00:00
Lukas Wutschitz 60adcf4eb9
Bump version (#23)
Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-10 15:48:04 +00:00
Lukas Wutschitz 9d736f934d
Add a test to check that not more compositions than max_compositions is requested (#21)
* Add a test to check we don't allow more compositions than
max_compositions

* Fix typo in calling compositions

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-10 15:00:49 +00:00
Lukas Wutschitz f4690b8956
Add check to prevent small values of delta (#18)
* Add check to prevent small values of delta

* Move check to discrete prv

* Fix merge conflict

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-10 14:42:27 +00:00
Lukas Wutschitz 31dc86948a
Add assertion to make domain creation meets requirements (#20)
* Add assertion to make domain creation meets requirements

* Add test case for edge cases in fp in domain creation

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-10 14:30:02 +00:00
Lukas Wutschitz 4b30ddc638
Fix typo in test prvs names (#19)
Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-11-10 12:33:55 +00:00
Santiago Zanella-Beguelin 0de03c6770
Improved conversion from RDP to Approximate DP (#16) 2021-11-05 17:44:36 +00:00
wulu473 ac21c2508d
Improve robustness (#12)
* Add more points to numerical integration for mean

* bump version

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-10-21 10:47:10 +01:00
wulu473 bef7e5288d
Move RDP computation to PRV and tidy up dependencies (#13)
* Refactor to use PRV's rdp

* Whitespace edits

* Tidy up accountant

* Updte compute dp script

* Remove requirements.txt file

* Fix typo

* Remove six dependency

* Bump version

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-10-20 11:06:17 -05:00
wulu473 1e5cfb56cb
Add workflow for windows (#9)
* Add workflow for windows

* Add better description for action

* Use latest version of windows

* Use longdouble instead of float128 which also works on windows

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-09-08 16:36:41 +01:00
wulu473 9563e27381
Update readme (#11)
Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-09-07 12:42:20 +01:00
wulu473 1310ed9390
Add workflows for publishing to pypi (#10)
Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-09-07 12:00:59 +01:00
wulu473 39b73611fb
Fix README example (#8) 2021-08-23 11:35:01 +02:00
wulu473 40b12400c0
Fix floating point warnings from numpy (#3)
* Fix floating point warnings from numpy

* Add test for safe log

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-08-23 11:34:35 +02:00
wulu473 0815032333
Refactor epsilon computation (#5)
* Refactor epsilon computation

* Annotate and fix return type

* Small optimisation and pdf computation

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-08-10 12:22:42 -05:00
wulu473 53164600f6
Use more suitable argument names (#2)
* Use more suitable argument names

* Fix tests

Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-06-18 17:50:07 +01:00
wulu473 8501113f97
Initial PR (#1)
Co-authored-by: Lukas Wutschitz <lukas.wutschitz@microsoft.com>
2021-06-11 20:08:05 +01:00
wulu473 8b0ceee149
Create python-package.yml 2021-06-11 14:35:23 +01:00
Microsoft Open Source d4012a09fc SUPPORT.md committed 2021-06-09 02:09:53 -07:00
Microsoft Open Source 61afcf411f README.md committed 2021-06-09 02:09:53 -07:00
Microsoft Open Source 9f5addbe94 SECURITY.md committed 2021-06-09 02:09:52 -07:00
Microsoft Open Source fdba35fcc9 CODE_OF_CONDUCT.md committed 2021-06-09 02:09:51 -07:00
Microsoft Open Source 678cf9e473 LICENSE committed 2021-06-09 02:09:51 -07:00
microsoft-github-operations[bot] 98553b74d2
Initial commit 2021-06-09 09:09:43 +00:00