Skip to content

Commit f1e4340

Browse files
committed
Adding numba to long_freq_est UE protocols
1 parent 68c40ad commit f1e4340

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

src/multi_freq_ldpy/long_freq_est/L_OSUE.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import numpy as np
2+
from numba import jit
23

34
# [1] Arcolezi et al (2021) "Improving the Utility of Locally Differentially Private Protocols for Longitudinal and Multidimensional Frequency Estimates" (arXiv:2111.04636).
45
# [2] Wang et al (2017) "Locally differentially private protocols for frequency estimation" (USENIX Security).
56

7+
@jit(nopython=True)
68
def L_OSUE_Client(input_data, k, eps_perm, eps_1):
79

810
"""

src/multi_freq_ldpy/long_freq_est/L_OUE.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import numpy as np
2+
from numba import jit
23

34
# [1] Arcolezi et al (2021) "Improving the Utility of Locally Differentially Private Protocols for Longitudinal and Multidimensional Frequency Estimates" (arXiv:2111.04636).
45
# [2] Wang et al (2017) "Locally differentially private protocols for frequency estimation" (USENIX Security).
56

7+
@jit(nopython=True)
68
def L_OUE_Client(input_data, k, eps_perm, eps_1):
79

810
"""

src/multi_freq_ldpy/long_freq_est/L_SOUE.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import numpy as np
2+
from numba import jit
23

34
# [1] Arcolezi et al (2021) "Improving the Utility of Locally Differentially Private Protocols for Longitudinal and Multidimensional Frequency Estimates" (arXiv:2111.04636).
45
# [2] Wang et al (2017) "Locally differentially private protocols for frequency estimation" (USENIX Security).
56

7+
@jit(nopython=True)
68
def L_SOUE_Client(input_data, k, eps_perm, eps_1):
79

810
"""

src/multi_freq_ldpy/long_freq_est/L_SUE.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import numpy as np
2+
from numba import jit
23

34
# [1] Arcolezi et al (2021) "Improving the Utility of Locally Differentially Private Protocols for Longitudinal and Multidimensional Frequency Estimates" (arXiv:2111.04636).
45
# [2] Erlingsson, Pihur, and Korolova (2014) "RAPPOR: Randomized aggregatable privacy-preserving ordinal response" (ACM CCS).
56
# [3] Wang et al (2017) "Locally differentially private protocols for frequency estimation" (USENIX Security).
67

8+
@jit(nopython=True)
79
def L_SUE_Client(input_data, k, eps_perm, eps_1):
810

911
"""
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

0 commit comments

Comments
 (0)