An end-to-end fraud detection pipeline for financial transactions, built for the constraints of a real banking or fintech environment: severe class imbalance, the cost of false negatives, interpretability for audit, and a structure that extends to batch or streaming production.
class_weight='balanced'balance_diff_orig / balance_diff_dest capture the strongest fraud behaviour.
is_high_risk_type (TRANSFER/CASH_OUT), where fraud actually occurs.
log1p compresses heavy-tailed amount distributions.
isFlaggedFraud (unavailable in production) is dropped.