MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / scaled_similarity

Function scaled_similarity

experiments/baselines/nl_profile/runner.py:208–209  ·  view source on GitHub ↗
(left: Dict[str, float], right: Dict[str, float])

Source from the content-addressed store, hash-verified

206
207
208def scaled_similarity(left: Dict[str, float], right: Dict[str, float]) -> float:
209 return clamp(cosine(left, right) * 4.0)
210
211
212def dedupe_strings(values: Iterable[Any]) -> List[str]:

Callers 1

score_rowFunction · 0.70

Calls 2

clampFunction · 0.70
cosineFunction · 0.70

Tested by

no test coverage detected