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>
28 lines
839 B
R
28 lines
839 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/functions.R
|
|
\name{evaluate_final_model}
|
|
\alias{evaluate_final_model}
|
|
\title{Final Model Evaluation (Months 6 & 7)}
|
|
\usage{
|
|
evaluate_final_model(
|
|
params,
|
|
bucket_name = "lake",
|
|
inputs_prefix = "baf-fraud/05_model_input"
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{params}{A named list of LightGBM hyperparameters with elements:
|
|
\code{trees}, \code{tree_depth}, \code{learn_rate}, \code{loss_reduction}, \code{min_n}.}
|
|
|
|
\item{bucket_name}{Character. Bucket name. Default "lake".}
|
|
|
|
\item{inputs_prefix}{Character. Model input prefix. Default "05_model_input".}
|
|
}
|
|
\value{
|
|
A tibble with columns \code{truth}, \code{prob}, and \code{pred_class}.
|
|
}
|
|
\description{
|
|
Trains the winning strategy on the full training set (Months 0-5)
|
|
and evaluates it on the unseen test set (Months 6-7).
|
|
}
|