Skip to content

RP-19: Implement correlation scoring model#15

Merged
b17saurabh merged 1 commit into
mainfrom
RP-19/correlation-scoring-model
Jun 14, 2026
Merged

RP-19: Implement correlation scoring model#15
b17saurabh merged 1 commit into
mainfrom
RP-19/correlation-scoring-model

Conversation

@b17saurabh

Copy link
Copy Markdown
Contributor

feat(correlation): weighted scoring model with explainable contributions and confidence

  • Add ScoringStrategy ABC and WeightedProbabilisticScorer with strategy-weight attenuation (weighted = 1 - (1 - raw * weight)) and probabilistic union composite.
  • Add ConfidenceScorer combining composite (40%), diversity (30%), coverage (20%), and recency (10%) factors into a [0, 1] confidence score.
  • Add ScoringPipeline orchestrating BFS group detection, weighted scoring, and confidence computation in one flow.
  • Refactor CorrelationPipeline._merge_into_groups to delegate to ScoringPipeline.
  • Add confidence and contributions fields to CorrelationGroup for explainable output.
  • Unify ScoreContribution model (canonical in correlation/models, re-exported through scoring/models) to avoid Pydantic type mismatch.
  • Add 20 tests covering scorer, confidence factors, and pipeline integration.
  • All 250 tests pass; ruff and mypy clean.

…ons and confidence

- Add ScoringStrategy ABC and WeightedProbabilisticScorer with strategy-weight
  attenuation (weighted = 1 - (1 - raw * weight)) and probabilistic union composite.
- Add ConfidenceScorer combining composite (40%), diversity (30%), coverage (20%),
  and recency (10%) factors into a [0, 1] confidence score.
- Add ScoringPipeline orchestrating BFS group detection, weighted scoring, and
  confidence computation in one flow.
- Refactor CorrelationPipeline._merge_into_groups to delegate to ScoringPipeline.
- Add confidence and contributions fields to CorrelationGroup for explainable output.
- Unify ScoreContribution model (canonical in correlation/models, re-exported
  through scoring/models) to avoid Pydantic type mismatch.
- Add 20 tests covering scorer, confidence factors, and pipeline integration.
- All 250 tests pass; ruff and mypy clean.
@b17saurabh b17saurabh self-assigned this Jun 14, 2026
@b17saurabh b17saurabh merged commit b8e8a6a into main Jun 14, 2026
8 checks passed
@b17saurabh b17saurabh deleted the RP-19/correlation-scoring-model branch June 14, 2026 15:12
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