(score: float)
| 357 | |
| 358 | |
| 359 | def label_for_score(score: float) -> str: |
| 360 | if score >= LABEL_THRESHOLDS["high_relevant"]: |
| 361 | return "high_relevant" |
| 362 | if score >= LABEL_THRESHOLDS["maybe_interested"]: |
| 363 | return "maybe_interested" |
| 364 | return "edge_relevant" |
| 365 | |
| 366 | |
| 367 | def score_row(row: Dict[str, Any], idf: Dict[str, float], state: UserNaturalProfileState) -> Dict[str, Any]: |