Skip to content

Refactor/scoring cleanup#8

Open
Dang-Ver wants to merge 2 commits intoTeam-Rizzo:mainfrom
Dang-Ver:refactor/scoring-cleanup
Open

Refactor/scoring cleanup#8
Dang-Ver wants to merge 2 commits intoTeam-Rizzo:mainfrom
Dang-Ver:refactor/scoring-cleanup

Conversation

@Dang-Ver
Copy link

No description provided.

Dang-Ver and others added 2 commits February 12, 2026 18:19
…d type hints

- Extract `is_post_too_old()` helper to replace duplicate age-check blocks
  in `compute_post_score` and `score_post_entry`
- Remove unused `_build_canonical_from_dict` function (validators use
  `PostClassification.to_canonical_string()` directly)
- Add `SubnetRelevanceAnalyzer` type hint to `analyzer` parameter in
  `top_k_relevance_from_analyzer` and `score_post_entry`
- Replace inline `max(0.0, min(1.0, ...))` with `_clamp01()` in
  `score_post_entry` for consistency with `compute_post_score`

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant