This commit is contained in:
con-fide 2023-11-06 11:21:20 +08:00
parent cf53e713ef
commit 86e8cc898c
3 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
aim.py
ABSyn.py

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -219,7 +219,7 @@ def multi_process_measure(log1, log2, engine, total, data): # 多进程数据
def MST(data, epsilon, delta):
def ABSyn(data, epsilon, delta):
time_start = time.time()
rho = cdp_rho(epsilon, delta)
# sigma = np.sqrt(5.0 / (9.0 * rho)) # 每次添加噪音分得 9/10的隐私预算
@ -918,7 +918,7 @@ if __name__ == '__main__':
print('epsilon', args.epsilon, 'delta', args.delta)
synth, cliques = MST(data, args.epsilon, args.delta)
synth, cliques = ABSyn(data, args.epsilon, args.delta)
time_end = time.time()
print('totally cost', time_end - time_start)