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

Function label_for_score

experiments/baselines/discourse_aware/runner.py:486–491  ·  view source on GitHub ↗
(score: float)

Source from the content-addressed store, hash-verified

484
485
486def label_for_score(score: float) -> str:
487 if score >= LABEL_THRESHOLDS["high_relevant"]:
488 return "high_relevant"
489 if score >= LABEL_THRESHOLDS["maybe_interested"]:
490 return "maybe_interested"
491 return "edge_relevant"
492
493
494def score_row(row: Dict[str, Any], idf: Dict[str, float], state: UserDiscourseState) -> Dict[str, Any]:

Callers 1

score_rowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected