MCPcopy Create free account
hub / github.com/microsoft/JARVIS / sim

Function sim

taskbench/evaluate.py:20–23  ·  view source on GitHub ↗
(name_1, name_2)

Source from the content-addressed store, hash-verified

18logger.handlers = []
19
20def sim(name_1, name_2):
21 if name_1 == "<PAD>" or name_2 == "<PAD>":
22 return 0
23 return 1 if name_1 == name_2 else 0
24
25def create_cost_matrix(graph_1, graph_2):
26 nodes_1 = graph_1["nodes"]

Callers 1

create_cost_matrixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected