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

Function scaled_similarity

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

Source from the content-addressed store, hash-verified

320
321
322def scaled_similarity(left: Dict[str, float], right: Dict[str, float]) -> float:
323 return clamp(cosine(left, right) * 4.0)
324
325
326def load_roles(roles_file: Path) -> Dict[str, Dict[str, Any]]:

Callers 1

facet_similarity_scoreFunction · 0.70

Calls 2

clampFunction · 0.70
cosineFunction · 0.70

Tested by

no test coverage detected