Skip to content

Add claim outcome prediction as a tracked accuracy metric - #14

Open
Exios66 wants to merge 1 commit into
mainfrom
cursor/claim-outcome-prediction-8051
Open

Add claim outcome prediction as a tracked accuracy metric#14
Exios66 wants to merge 1 commit into
mainfrom
cursor/claim-outcome-prediction-8051

Conversation

@Exios66

@Exios66 Exios66 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

Adds claim outcome prediction as a tracked accuracy metric alongside classification and extraction.

  • New skeleton field expected_outcome (pay_full / pay_partial / deny / investigate / close_without_payment), derived deterministically from complexity + financials + injuries
  • New pipeline stage predict_outcome in the chain: to_markdown → classify → extract → vision_llm → predict_outcome → summarize
  • Eval CLI + reports: python -m src.pipeline.eval_outcome --in …evaluation/reports/outcome_prediction_report.*
  • Batch runner surfaces outcome_metrics.accuracy when gold labels are present
  • Memos and Discord summaries include the predicted disposition

Because gold labels use the same feature rules as the predictor, outcome accuracy measures how well upstream extraction recovers the features needed for disposition — complementary to doc-type accuracy and field F1.

Test plan

  • pytest tests/test_outcome_prediction.py tests/test_pipeline.py tests/test_generation.py tests/test_discord_bot.py
  • Sample report written under evaluation/reports/outcome_prediction_report.*
  • Run eval_outcome on a full synthetic document JSONL when available
Open in Web Open in Cursor 

Introduce expected_outcome on synthetic skeletons and a predict_outcome
pipeline stage (pay_full/pay_partial/deny/investigate/close_without_payment).
Gold labels are deterministic from claim features so outcome accuracy
complements classification and extraction reports. Includes eval CLI,
batch summary metrics, Discord formatting, and sample eval reports.

Co-authored-by: Jack J Burleson // LJM <Exios66@users.noreply.github.com>
@Exios66
Exios66 marked this pull request as ready for review July 19, 2026 05:09
@cursor

cursor Bot commented Jul 19, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

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.

2 participants