MCPcopy Create free account
hub / github.com/Depth2World/VLADBench / compare_and_count

Function compare_and_count

evaluate_utils.py:82–87  ·  view source on GitHub ↗
(array_a, array_b)

Source from the content-addressed store, hash-verified

80
81
82def compare_and_count(array_a, array_b):
83 count = 0
84 for a, b in zip(array_a, array_b):
85 if a == 1 and b == 1: count+=1
86 if a > b:count+=1
87 return count
88
89def isfile(path):
90 return os.path.isfile(path)

Callers 3

Relation_criterion_QAFunction · 0.85
RoadChange_criterion_QAFunction · 0.85
RoadSpeed_criterion_QAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected