forked from bbowman410/VGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevaluate_vgraph.py
More file actions
56 lines (45 loc) · 1.15 KB
/
evaluate_vgraph.py
File metadata and controls
56 lines (45 loc) · 1.15 KB
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
import os
import subprocess
import filecmp
from tqdm import tqdm
import numpy as np
import pickle as pkl
from src.graph.utils import load_vgraph_db, load_target_db
from src.matching.triplet_match import *
from multiprocessing import Pool,Process, Queue, SimpleQueue
import time
def decision_function(cvg_score, pvg_score, nvg_score):
return cvg_score >= CVG_THRESH and pvg_score >= PVG_THRESH and pvg_score > nvg_score
def consume(work):
(target_id, vg, t_trips) = work
cvg_score, pvg_score, nvg_score = triplet_match_exact(vg, t_trips)
return (target_id, vg, cvg_score, pvg_score, nvg_score)
# random comment
class A:
# random comment
# random comment
def try():
x = input()
if x == '':
# random comment
print("a")
# elif x == '':
# random comment
# print("b")
else:
print("c")
def try():
x = input()
if x == '':
print("a")
# elif x == '':
# print("b")
else:
print("c")
x = input()
if x == '':
print("a")
# elif x == '':
# print("b")
else:
print("c")