(row_vector: Dict[str, float], state: UserCitationState)
| 421 | |
| 422 | |
| 423 | def content_score(row_vector: Dict[str, float], state: UserCitationState) -> float: |
| 424 | profile_score = scaled_similarity(row_vector, state.profile_vector) |
| 425 | if state.selected_count <= 0: |
| 426 | return profile_score |
| 427 | feedback_score = scaled_similarity(row_vector, state.selected_centroid()) |
| 428 | return clamp(0.65 * feedback_score + 0.35 * profile_score) |
| 429 | |
| 430 | |
| 431 | def citation_relation_score(row: Dict[str, Any], state: UserCitationState) -> Tuple[float, bool, float]: |
no test coverage detected