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

22
man/connect_baf.Rd Normal file
View File

@@ -0,0 +1,22 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{connect_baf}
\alias{connect_baf}
\title{Connect to BAF dataset on MinIO (Arrow or DuckDB)}
\usage{
connect_baf(prefix, bucket_name = Sys.getenv("BAF_BUCKET"), use_duckdb = TRUE)
}
\arguments{
\item{prefix}{Character. Dataset prefix inside the bucket
(e.g., "02_intermediate/variant=Base").}
\item{bucket_name}{Character. Bucket name. Defaults to env var BAF_BUCKET.}
\item{use_duckdb}{Logical. If TRUE, return a DuckDB-backed lazy tbl.}
}
\value{
An Arrow Dataset (default) or a DuckDB-backed lazy table.
}
\description{
Connect to BAF dataset on MinIO (Arrow or DuckDB)
}