Initial commit: BAF Lakehouse fraud detection pipeline

End-to-end LightGBM fraud detection pipeline built as an R package,
orchestrated by targets with data stored in MinIO via Apache Arrow.
Includes 6-layer Lakehouse architecture, class imbalance tournament,
formally tuned hyperparameters (PR-AUC 0.198), and Quarto RevealJS slides.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-21 21:19:09 -05:00
commit 33d0fc31c7
56 changed files with 15596 additions and 0 deletions

9
R/baflakehouse-package.R Normal file
View File

@@ -0,0 +1,9 @@
#' baflakehouse: Lakehouse Workflow for the Bank Account Fraud Dataset
#'
#' Tools to ingest the Bank Account Fraud (BAF) Base dataset into a MinIO/S3-backed
#' lakehouse, clean encoded missing values, and produce reproducible reporting
#' artifacts orchestrated with targets.
#'
#' @docType _PACKAGE
#' @name baflakehouse-package
NULL

1210
R/functions.R Normal file

File diff suppressed because it is too large Load Diff

10
R/zzz.R Normal file
View File

@@ -0,0 +1,10 @@
# fix R CMD check notes for dplyr non-standard evaluation
utils::globalVariables(c(
"fraud_bool", "outcome", "month",
"Fraud", "Legit", "Total", "Pct_Fraud",
"Outcome", "Month",
"prev_address_months_count", "current_address_months_count",
"bank_months_count", "session_length_in_minutes",
"device_distinct_emails_8w", "device_distinct_emails",
"intended_balcon_amount"
))