Skip to content

Add fraud detection model plan#62

Open
shlbatra wants to merge 1 commit into
mainfrom
fraud-model
Open

Add fraud detection model plan#62
shlbatra wants to merge 1 commit into
mainfrom
fraud-model

Conversation

@shlbatra

@shlbatra shlbatra commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds plan/fraud_model_plan.md — a draft implementation plan for a fraud detection system modeled on the existing iris pipeline.
  • Key design choices: LightGBM model with Optuna hyperparameter tuning in the KFP training pipeline, and a low-latency Cloud Run FastAPI real-time inference path (replacing the Dataflow inference hop) targeting <50ms p95.
  • Feature engineering across users + transfers (velocity, amount aggregation, cross-border, diversity features) via BQ window functions, with a time-bucketed streaming refresh.
  • Reorganizes existing design docs from docs/ into plan/.

Decisions captured

  • LightGBM over XGBoost; threshold stored in a BQ config table; global-average defaults for cold-start users; hourly time-bucketed feature aggregation; feature-drift monitoring deferred.

Status

This is a plan for review, not an implementation. The doc ends with a "Review Findings — To Address" section (entity-granularity split, train/test leakage, point-in-time SQL correctness, synthetic-label signal, etc.) to resolve before writing code.

🤖 Generated with Claude Code

Draft implementation plan for a LightGBM-based fraud detection system
modeled on the iris pipeline, with Optuna hyperparameter tuning and a
low-latency Cloud Run FastAPI real-time inference path. Reorganize
existing design docs from docs/ into plan/.

Co-Authored-By: Claude Fable 5 <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