Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Commit

Permalink
Fixed str+int concatenation
Browse files Browse the repository at this point in the history
Without compromising sensitivity measurements
  • Loading branch information
quantum9Innovation authored Apr 13, 2020
1 parent 982151f commit 5b32b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lap-mechanism.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def lapmech(data, file_name, epsilon, f, sample_size=10, delta_f=None):

for c in range(columns):

data_draft.append([raw_data[r].split(',')[c] for r in range(rows)])
data_draft.append([float(raw_data[r].split(',')[c]) for r in range(rows)])
samples = [int(rows * random.random()) for i in range(sample_size)]
delta_f.append(0.01)

Expand Down

0 comments on commit 5b32b74

Please sign in to comment.