Skip to content

Commit

Permalink
created param files for and tested calc of max fpr
Browse files Browse the repository at this point in the history
  • Loading branch information
TheColdIce committed Aug 26, 2024
1 parent cfd9c7b commit f18c4d4
Show file tree
Hide file tree
Showing 20 changed files with 357,634 additions and 364,139 deletions.
240 changes: 120 additions & 120 deletions AMLsim/paramFiles/10K_accts/degree.csv
Original file line number Diff line number Diff line change
@@ -1,142 +1,142 @@
Count,In-degree,Out-degree
1389,0,2
508,0,3
95,0,4
31,0,5
13,0,6
10,0,7
2,0,8
2,0,9
2,0,10
2,0,11
1427,0,2
453,0,3
108,0,4
27,0,5
14,0,6
7,0,7
1,0,8
4,0,9
1,0,11
2,0,13
1,0,14
50,1,0
2802,1,1
959,1,2
215,1,3
67,1,4
30,1,5
15,1,6
9,1,7
9,1,8
1,1,9
1,1,10
1,1,11
1,1,24
1,1,29
1,1,30
1347,2,0
902,2,1
200,2,2
65,2,3
35,2,4
18,2,5
5,2,6
1,0,25
13,1,0
2740,1,1
956,1,2
198,1,3
69,1,4
36,1,5
18,1,6
7,1,7
1,1,8
3,1,9
2,1,10
1,1,22
1,1,37
1423,2,0
949,2,1
185,2,2
61,2,3
34,2,4
17,2,5
3,2,6
6,2,7
1,2,8
1,2,9
2,2,10
1,2,11
1,2,12
1,2,13
2,2,14
1,2,16
420,3,0
191,3,1
1,2,14
1,2,21
443,3,0
185,3,1
63,3,2
29,3,3
12,3,4
6,3,5
4,3,6
5,3,8
1,3,9
104,4,0
65,4,1
31,4,2
11,4,3
6,4,4
4,4,5
16,3,4
4,3,5
1,3,6
2,3,7
1,3,8
2,3,9
1,3,10
1,3,12
1,3,13
1,3,17
102,4,0
72,4,1
26,4,2
10,4,3
9,4,4
6,4,5
2,4,6
2,4,7
2,4,10
1,4,13
1,4,14
1,4,18
5,4,7
1,4,9
36,5,0
32,5,1
11,5,2
6,5,3
4,5,4
4,5,5
2,5,6
3,5,7
1,5,9
1,5,11
1,5,17
12,6,0
16,6,1
6,6,2
4,6,3
28,5,1
9,5,2
5,5,3
5,5,4
1,5,5
1,5,6
2,5,10
2,5,13
13,6,0
15,6,1
7,6,2
7,6,3
2,6,4
1,6,5
1,6,6
1,6,7
2,6,8
1,6,9
1,6,10
1,6,28
3,7,0
1,7,1
2,6,10
1,6,17
4,7,0
6,7,1
5,7,2
1,7,3
1,7,4
1,7,5
2,7,9
1,7,11
1,7,16
6,8,0
1,8,1
4,8,2
3,8,3
1,8,4
1,8,5
1,8,8
1,8,15
3,9,0
2,9,1
3,9,2
1,9,3
2,7,3
2,7,5
1,7,8
1,7,10
1,7,27
4,8,0
5,8,1
3,8,2
2,8,3
2,8,5
2,8,8
1,8,11
4,9,0
3,9,1
2,9,2
2,9,3
1,9,4
2,9,6
1,9,11
1,9,14
1,9,5
1,9,16
2,10,0
1,10,1
3,10,2
1,10,13
4,10,1
1,10,2
2,10,4
1,10,7
1,11,0
3,11,1
1,11,2
3,11,3
2,12,1
1,12,4
1,11,3
1,11,6
1,11,11
1,12,6
1,12,8
1,13,1
1,13,2
2,13,3
1,14,4
1,14,5
1,14,9
1,15,2
1,15,12
1,16,1
1,13,14
1,14,2
2,15,1
1,15,11
1,16,4
1,16,29
1,18,0
1,18,8
1,19,0
1,16,57
1,17,1
1,18,1
1,18,4
1,18,5
1,20,10
1,21,2
1,23,8
1,23,99
1,24,21
1,25,0
1,25,13
1,30,30
1,31,10
1,53,69
1,73,0
1,83,58
1,129,24
1,144,24
1,212,2
1,29,12
1,48,12
1,64,150
1,74,67
1,104,64
1,142,11
Binary file modified auto-aml-data-gen/__pycache__/classifier.cpython-310.pyc
Binary file not shown.
Binary file modified auto-aml-data-gen/__pycache__/preprocess.cpython-310.pyc
Binary file not shown.
Binary file modified auto-aml-data-gen/__pycache__/simulate.cpython-310.pyc
Binary file not shown.
Binary file modified auto-aml-data-gen/__pycache__/utils.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion auto-aml-data-gen/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def evaluate(self, operating_recall:int=0.8):
y_pred = (y_pred > threshold).astype(int)

tn, fp, fn, tp = confusion_matrix(self.y_test, y_pred).ravel()
#print(f'tn: {tn}, fp: {fp}, fn: {fn}, tp: {tp}')
print(f'tn: {tn}, fp: {fp}, fn: {fn}, tp: {tp}')
fpr = fp/(fp+tp)
print(f'False positive rate: {fpr:.4f}')

Expand Down
Loading

0 comments on commit f18c4d4

Please sign in to comment.