File size: 13,891 Bytes
0776bc7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
 -->
<!-- Title: G Pages: 1 -->
<svg width="947pt" height="531pt"
 viewBox="0.00 0.00 947.00 530.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 526.5)">
<title>G</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-526.5 943,-526.5 943,4 -4,4"/>
<g id="clust2" class="cluster">
<title>cluster_8a2f3df1</title>
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-115.5 8,-514.5 931,-514.5 931,-115.5 8,-115.5"/>
<text text-anchor="middle" x="469.5" y="-499.3" font-family="Times New Roman,serif" font-size="14.00">File: util_predict_model_threshold</text>
</g>
<!-- Legend -->
<g id="node1" class="node">
<title>Legend</title>
<polygon fill="none" stroke="black" points="22,-88.5 22,-105.5 287,-105.5 287,-88.5 22,-88.5"/>
<text text-anchor="start" x="100.5" y="-93.3" font-family="Times New Roman,serif" font-size="14.00">Code2flow Legend</text>
<polygon fill="none" stroke="black" points="22,-0.5 22,-88.5 287,-88.5 287,-0.5 22,-0.5"/>
<polygon fill="none" stroke="black" points="24,-65.5 24,-86.5 235,-86.5 235,-65.5 24,-65.5"/>
<text text-anchor="start" x="83" y="-72.3" font-family="Times New Roman,serif" font-size="14.00">Regular function</text>
<polygon fill="#cccccc" stroke="transparent" points="235,-65.5 235,-86.5 285,-86.5 285,-65.5 235,-65.5"/>
<polygon fill="none" stroke="black" points="235,-65.5 235,-86.5 285,-86.5 285,-65.5 235,-65.5"/>
<polygon fill="none" stroke="black" points="24,-44.5 24,-65.5 235,-65.5 235,-44.5 24,-44.5"/>
<text text-anchor="start" x="34.5" y="-51.3" font-family="Times New Roman,serif" font-size="14.00">Trunk function (nothing calls this)</text>
<polygon fill="#966f33" stroke="transparent" points="235,-44.5 235,-65.5 285,-65.5 285,-44.5 235,-44.5"/>
<polygon fill="none" stroke="black" points="235,-44.5 235,-65.5 285,-65.5 285,-44.5 235,-44.5"/>
<polygon fill="none" stroke="black" points="24,-23.5 24,-44.5 235,-44.5 235,-23.5 24,-23.5"/>
<text text-anchor="start" x="27" y="-30.3" font-family="Times New Roman,serif" font-size="14.00">Leaf function (this calls nothing else)</text>
<polygon fill="#6db33f" stroke="transparent" points="235,-23.5 235,-44.5 285,-44.5 285,-23.5 235,-23.5"/>
<polygon fill="none" stroke="black" points="235,-23.5 235,-44.5 285,-44.5 285,-23.5 235,-23.5"/>
<polygon fill="none" stroke="black" points="24,-2.5 24,-23.5 235,-23.5 235,-2.5 24,-2.5"/>
<text text-anchor="start" x="93" y="-9.3" font-family="Times New Roman,serif" font-size="14.00">Function call</text>
<polygon fill="none" stroke="black" points="235,-2.5 235,-23.5 285,-23.5 285,-2.5 235,-2.5"/>
<text text-anchor="start" x="252.5" y="-9.3" font-family="Times New Roman,serif" font-size="14.00"></text>
<polygon fill="none" stroke="black" points="23,-1.5 23,-87.5 286,-87.5 286,-1.5 23,-1.5"/>
<polygon fill="none" stroke="black" points="20.5,0 20.5,-107 287.5,-107 287.5,0 20.5,0"/>
</g>
<!-- node_1f9151c4 -->
<g id="node2" class="node">
<title>node_1f9151c4</title>
<path fill="#966f33" stroke="black" d="M280,-456.5C280,-456.5 28,-456.5 28,-456.5 22,-456.5 16,-450.5 16,-444.5 16,-444.5 16,-432.5 16,-432.5 16,-426.5 22,-420.5 28,-420.5 28,-420.5 280,-420.5 280,-420.5 286,-420.5 292,-426.5 292,-432.5 292,-432.5 292,-444.5 292,-444.5 292,-450.5 286,-456.5 280,-456.5"/>
<text text-anchor="middle" x="154" y="-434.8" font-family="Times New Roman,serif" font-size="14.00">148: J_statistic_driven_probability_threshold()</text>
</g>
<!-- node_db982914 -->
<g id="node8" class="node">
<title>node_db982914</title>
<path fill="#6db33f" stroke="black" d="M573.5,-483.5C573.5,-483.5 377.5,-483.5 377.5,-483.5 371.5,-483.5 365.5,-477.5 365.5,-471.5 365.5,-471.5 365.5,-459.5 365.5,-459.5 365.5,-453.5 371.5,-447.5 377.5,-447.5 377.5,-447.5 573.5,-447.5 573.5,-447.5 579.5,-447.5 585.5,-453.5 585.5,-459.5 585.5,-459.5 585.5,-471.5 585.5,-471.5 585.5,-477.5 579.5,-483.5 573.5,-483.5"/>
<text text-anchor="middle" x="475.5" y="-461.8" font-family="Times New Roman,serif" font-size="14.00">85: find_best_threshold_J_statistic()</text>
</g>
<!-- node_1f9151c4&#45;&gt;node_db982914 -->
<g id="edge1" class="edge">
<title>node_1f9151c4&#45;&gt;node_db982914</title>
<path fill="none" stroke="#f0e442" stroke-width="2" d="M292.21,-452C292.21,-452 355.04,-452 355.04,-452"/>
<polygon fill="#f0e442" stroke="#f0e442" stroke-width="2" points="355.04,-455.5 365.04,-452 355.04,-448.5 355.04,-455.5"/>
</g>
<!-- node_46bf610a -->
<g id="node11" class="node">
<title>node_46bf610a</title>
<path fill="#cccccc" stroke="black" d="M564.5,-375.5C564.5,-375.5 386.5,-375.5 386.5,-375.5 380.5,-375.5 374.5,-369.5 374.5,-363.5 374.5,-363.5 374.5,-351.5 374.5,-351.5 374.5,-345.5 380.5,-339.5 386.5,-339.5 386.5,-339.5 564.5,-339.5 564.5,-339.5 570.5,-339.5 576.5,-345.5 576.5,-351.5 576.5,-351.5 576.5,-363.5 576.5,-363.5 576.5,-369.5 570.5,-375.5 564.5,-375.5"/>
<text text-anchor="middle" x="475.5" y="-353.8" font-family="Times New Roman,serif" font-size="14.00">103: threshold_and_predictions()</text>
</g>
<!-- node_1f9151c4&#45;&gt;node_46bf610a -->
<g id="edge2" class="edge">
<title>node_1f9151c4&#45;&gt;node_46bf610a</title>
<path fill="none" stroke="#f0e442" stroke-width="2" d="M284,-420.34C284,-398.15 284,-363.5 284,-363.5 284,-363.5 364.42,-363.5 364.42,-363.5"/>
<polygon fill="#f0e442" stroke="#f0e442" stroke-width="2" points="364.42,-367 374.42,-363.5 364.42,-360 364.42,-367"/>
</g>
<!-- node_724f6ba5 -->
<g id="node3" class="node">
<title>node_724f6ba5</title>
<path fill="#966f33" stroke="black" d="M585.5,-429.5C585.5,-429.5 365.5,-429.5 365.5,-429.5 359.5,-429.5 353.5,-423.5 353.5,-417.5 353.5,-417.5 353.5,-405.5 353.5,-405.5 353.5,-399.5 359.5,-393.5 365.5,-393.5 365.5,-393.5 585.5,-393.5 585.5,-393.5 591.5,-393.5 597.5,-399.5 597.5,-405.5 597.5,-405.5 597.5,-417.5 597.5,-417.5 597.5,-423.5 591.5,-429.5 585.5,-429.5"/>
<text text-anchor="middle" x="475.5" y="-407.8" font-family="Times New Roman,serif" font-size="14.00">274: acceptance_rate_driven_threshold()</text>
</g>
<!-- node_490d9b0f -->
<g id="node4" class="node">
<title>node_490d9b0f</title>
<path fill="#6db33f" stroke="black" d="M911,-429.5C911,-429.5 671,-429.5 671,-429.5 665,-429.5 659,-423.5 659,-417.5 659,-417.5 659,-405.5 659,-405.5 659,-399.5 665,-393.5 671,-393.5 671,-393.5 911,-393.5 911,-393.5 917,-393.5 923,-399.5 923,-405.5 923,-405.5 923,-417.5 923,-417.5 923,-423.5 917,-429.5 911,-429.5"/>
<text text-anchor="middle" x="791" y="-407.8" font-family="Times New Roman,serif" font-size="14.00">76: apply_threshold_to_probability_values()</text>
</g>
<!-- node_724f6ba5&#45;&gt;node_490d9b0f -->
<g id="edge3" class="edge">
<title>node_724f6ba5&#45;&gt;node_490d9b0f</title>
<path fill="none" stroke="#0072b2" stroke-width="2" d="M597.93,-411.5C597.93,-411.5 648.97,-411.5 648.97,-411.5"/>
<polygon fill="#0072b2" stroke="#0072b2" stroke-width="2" points="648.97,-415 658.97,-411.5 648.97,-408 648.97,-415"/>
</g>
<!-- node_b4aaa6d8 -->
<g id="node5" class="node">
<title>node_b4aaa6d8</title>
<path fill="#6db33f" stroke="black" d="M585.5,-321.5C585.5,-321.5 365.5,-321.5 365.5,-321.5 359.5,-321.5 353.5,-315.5 353.5,-309.5 353.5,-309.5 353.5,-297.5 353.5,-297.5 353.5,-291.5 359.5,-285.5 365.5,-285.5 365.5,-285.5 585.5,-285.5 585.5,-285.5 591.5,-285.5 597.5,-291.5 597.5,-297.5 597.5,-297.5 597.5,-309.5 597.5,-309.5 597.5,-315.5 591.5,-321.5 585.5,-321.5"/>
<text text-anchor="middle" x="475.5" y="-299.8" font-family="Times New Roman,serif" font-size="14.00">34: classification_report_per_threshold()</text>
</g>
<!-- node_9d1be9bc -->
<g id="node6" class="node">
<title>node_9d1be9bc</title>
<path fill="#6db33f" stroke="black" d="M551.5,-159.5C551.5,-159.5 399.5,-159.5 399.5,-159.5 393.5,-159.5 387.5,-153.5 387.5,-147.5 387.5,-147.5 387.5,-135.5 387.5,-135.5 387.5,-129.5 393.5,-123.5 399.5,-123.5 399.5,-123.5 551.5,-123.5 551.5,-123.5 557.5,-123.5 563.5,-129.5 563.5,-135.5 563.5,-135.5 563.5,-147.5 563.5,-147.5 563.5,-153.5 557.5,-159.5 551.5,-159.5"/>
<text text-anchor="middle" x="475.5" y="-137.8" font-family="Times New Roman,serif" font-size="14.00">165: create_tradeoff_graph()</text>
</g>
<!-- node_31401d8a -->
<g id="node7" class="node">
<title>node_31401d8a</title>
<path fill="#6db33f" stroke="black" d="M567.5,-213.5C567.5,-213.5 383.5,-213.5 383.5,-213.5 377.5,-213.5 371.5,-207.5 371.5,-201.5 371.5,-201.5 371.5,-189.5 371.5,-189.5 371.5,-183.5 377.5,-177.5 383.5,-177.5 383.5,-177.5 567.5,-177.5 567.5,-177.5 573.5,-177.5 579.5,-183.5 579.5,-189.5 579.5,-189.5 579.5,-201.5 579.5,-201.5 579.5,-207.5 573.5,-213.5 567.5,-213.5"/>
<text text-anchor="middle" x="475.5" y="-191.8" font-family="Times New Roman,serif" font-size="14.00">93: default_status_per_threshold()</text>
</g>
<!-- node_5d83fede -->
<g id="node9" class="node">
<title>node_5d83fede</title>
<path fill="#6db33f" stroke="black" d="M883.5,-375.5C883.5,-375.5 698.5,-375.5 698.5,-375.5 692.5,-375.5 686.5,-369.5 686.5,-363.5 686.5,-363.5 686.5,-351.5 686.5,-351.5 686.5,-345.5 692.5,-339.5 698.5,-339.5 698.5,-339.5 883.5,-339.5 883.5,-339.5 889.5,-339.5 895.5,-345.5 895.5,-351.5 895.5,-351.5 895.5,-363.5 895.5,-363.5 895.5,-369.5 889.5,-375.5 883.5,-375.5"/>
<text text-anchor="middle" x="791" y="-353.8" font-family="Times New Roman,serif" font-size="14.00">18: model_probability_values_df()</text>
</g>
<!-- node_e309a559 -->
<g id="node10" class="node">
<title>node_e309a559</title>
<path fill="#6db33f" stroke="black" d="M611,-267.5C611,-267.5 340,-267.5 340,-267.5 334,-267.5 328,-261.5 328,-255.5 328,-255.5 328,-243.5 328,-243.5 328,-237.5 334,-231.5 340,-231.5 340,-231.5 611,-231.5 611,-231.5 617,-231.5 623,-237.5 623,-243.5 623,-243.5 623,-255.5 623,-255.5 623,-261.5 617,-267.5 611,-267.5"/>
<text text-anchor="middle" x="475.5" y="-245.8" font-family="Times New Roman,serif" font-size="14.00">52: thresh_classification_report_recall_accuracy()</text>
</g>
<!-- node_46bf610a&#45;&gt;node_490d9b0f -->
<g id="edge4" class="edge">
<title>node_46bf610a&#45;&gt;node_490d9b0f</title>
<path fill="none" stroke="#56b4e9" stroke-width="2" d="M576.56,-363.5C625.16,-363.5 673,-363.5 673,-363.5 673,-363.5 673,-383.35 673,-383.35"/>
<polygon fill="#56b4e9" stroke="#56b4e9" stroke-width="2" points="669.5,-383.35 673,-393.35 676.5,-383.35 669.5,-383.35"/>
</g>
<!-- node_46bf610a&#45;&gt;node_5d83fede -->
<g id="edge5" class="edge">
<title>node_46bf610a&#45;&gt;node_5d83fede</title>
<path fill="none" stroke="#56b4e9" stroke-width="2" d="M576.63,-351.5C576.63,-351.5 676.37,-351.5 676.37,-351.5"/>
<polygon fill="#56b4e9" stroke="#56b4e9" stroke-width="2" points="676.37,-355 686.37,-351.5 676.37,-348 676.37,-355"/>
</g>
<!-- node_4f2d20d8 -->
<g id="node12" class="node">
<title>node_4f2d20d8</title>
<path fill="#966f33" stroke="black" d="M220,-240.5C220,-240.5 88,-240.5 88,-240.5 82,-240.5 76,-234.5 76,-228.5 76,-228.5 76,-216.5 76,-216.5 76,-210.5 82,-204.5 88,-204.5 88,-204.5 220,-204.5 220,-204.5 226,-204.5 232,-210.5 232,-216.5 232,-216.5 232,-228.5 232,-228.5 232,-234.5 226,-240.5 220,-240.5"/>
<text text-anchor="middle" x="154" y="-218.8" font-family="Times New Roman,serif" font-size="14.00">182: tradeoff_threshold()</text>
</g>
<!-- node_4f2d20d8&#45;&gt;node_b4aaa6d8 -->
<g id="edge6" class="edge">
<title>node_4f2d20d8&#45;&gt;node_b4aaa6d8</title>
<path fill="none" stroke="#000000" stroke-width="2" d="M154,-240.88C154,-264.78 154,-303.5 154,-303.5 154,-303.5 343.5,-303.5 343.5,-303.5"/>
<polygon fill="#000000" stroke="#000000" stroke-width="2" points="343.5,-307 353.5,-303.5 343.5,-300 343.5,-307"/>
</g>
<!-- node_4f2d20d8&#45;&gt;node_9d1be9bc -->
<g id="edge7" class="edge">
<title>node_4f2d20d8&#45;&gt;node_9d1be9bc</title>
<path fill="none" stroke="#000000" stroke-width="2" d="M154,-204.12C154,-180.22 154,-141.5 154,-141.5 154,-141.5 377.22,-141.5 377.22,-141.5"/>
<polygon fill="#000000" stroke="#000000" stroke-width="2" points="377.22,-145 387.22,-141.5 377.22,-138 377.22,-145"/>
</g>
<!-- node_4f2d20d8&#45;&gt;node_31401d8a -->
<g id="edge8" class="edge">
<title>node_4f2d20d8&#45;&gt;node_31401d8a</title>
<path fill="none" stroke="#000000" stroke-width="2" d="M232.24,-209C232.24,-209 361.3,-209 361.3,-209"/>
<polygon fill="#000000" stroke="#000000" stroke-width="2" points="361.3,-212.5 371.3,-209 361.3,-205.5 361.3,-212.5"/>
</g>
<!-- node_4f2d20d8&#45;&gt;node_e309a559 -->
<g id="edge9" class="edge">
<title>node_4f2d20d8&#45;&gt;node_e309a559</title>
<path fill="none" stroke="#000000" stroke-width="2" d="M232.24,-236C232.24,-236 317.96,-236 317.96,-236"/>
<polygon fill="#000000" stroke="#000000" stroke-width="2" points="317.96,-239.5 327.96,-236 317.96,-232.5 317.96,-239.5"/>
</g>
<!-- node_16176513 -->
<g id="node13" class="node">
<title>node_16176513</title>
<path fill="#966f33" stroke="black" d="M267.5,-375.5C267.5,-375.5 40.5,-375.5 40.5,-375.5 34.5,-375.5 28.5,-369.5 28.5,-363.5 28.5,-363.5 28.5,-351.5 28.5,-351.5 28.5,-345.5 34.5,-339.5 40.5,-339.5 40.5,-339.5 267.5,-339.5 267.5,-339.5 273.5,-339.5 279.5,-345.5 279.5,-351.5 279.5,-351.5 279.5,-363.5 279.5,-363.5 279.5,-369.5 273.5,-375.5 267.5,-375.5"/>
<text text-anchor="middle" x="154" y="-353.8" font-family="Times New Roman,serif" font-size="14.00">131: user_defined_probability_threshold()</text>
</g>
<!-- node_16176513&#45;&gt;node_46bf610a -->
<g id="edge10" class="edge">
<title>node_16176513&#45;&gt;node_46bf610a</title>
<path fill="none" stroke="#009e73" stroke-width="2" d="M279.68,-351.5C279.68,-351.5 364.25,-351.5 364.25,-351.5"/>
<polygon fill="#009e73" stroke="#009e73" stroke-width="2" points="364.25,-355 374.25,-351.5 364.25,-348 364.25,-355"/>
</g>
</g>
</svg>