All functions now default to bucket_name = "lake" with "baf-fraud/" prepended to all layer prefixes, matching the contemporary lakehouse naming convention (one bucket per environment, project as prefix). Migration: copy baf-fraud/ data to lake/baf-fraud/ on analyticsvm, update BAF_BUCKET env var from "baf-fraud" to "lake". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
1.1 KiB
R
35 lines
1.1 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/functions.R
|
|
\name{run_imbalance_tournament}
|
|
\alias{run_imbalance_tournament}
|
|
\title{Run Class Imbalance Tournament}
|
|
\usage{
|
|
run_imbalance_tournament(
|
|
tasks,
|
|
windows,
|
|
feature_prefix,
|
|
bucket_name = "lake",
|
|
inputs_prefix = "baf-fraud/05_model_input"
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{tasks}{A tibble containing recipe_name, data_folder, and scale_pos_weight.}
|
|
|
|
\item{windows}{A tibble containing window_id, train_months, and test_month.}
|
|
|
|
\item{feature_prefix}{Character. The upstream dependency prefix (used to force DAG execution).}
|
|
|
|
\item{bucket_name}{Character. Bucket name. Default "lake".}
|
|
|
|
\item{inputs_prefix}{Character. The folder containing the sampled data. Default "05_model_input".}
|
|
}
|
|
\value{
|
|
A tibble with the summarized tournament results.
|
|
}
|
|
\description{
|
|
Trains LightGBM models across different class imbalance strategies
|
|
(Standard, SMOTE, Adasyn, etc.) using sliding time windows. Evaluates
|
|
performance using PR-AUC and calculates statistical significance.
|
|
Includes common-sense hyperparameter defaults to prevent overfitting.
|
|
}
|