Learn R Programming

BORG (version 0.2.5)

borg_auto_check: Enable/Disable BORG Auto-Check Mode

Description

Configures BORG to automatically validate train/test splits when using supported ML frameworks. When enabled, BORG will intercept common modeling functions and validate indices before training proceeds.

Usage

borg_auto_check(enable = TRUE, strict = TRUE, verbose = FALSE)

Value

Invisibly returns the previous state of auto-check options.

Arguments

enable

Logical. If TRUE, enable auto-check mode. If FALSE, disable.

strict

Logical. If TRUE, throw errors on violations. If FALSE, warn.

verbose

Logical. If TRUE, print diagnostic messages.

Examples

Run this code
# Enable auto-checking with strict mode
borg_auto_check(TRUE)

# Disable auto-checking
borg_auto_check(FALSE)

# Enable with warnings instead of errors
borg_auto_check(TRUE, strict = FALSE)

Run the code above in your browser using DataLab