drift_step: Run the drift detector on a batch

View source: R/ac_drift_workflow.R

drift_stepR Documentation

Run the drift detector on a batch

Description

The shared drift step of the drift-adaptation workflows: builds the signal the detector monitors with drifter_input(), feeds the detector, reads whether it drifted and resets it on a drift. It keeps the model wrappers from duplicating the detect-and-reset logic.

Usage

drift_step(drift_method, ctx)

Arguments

drift_method

The drift detector.

ctx

The context passed to drifter_input(): features (the projected batch) and, for error-based detectors, model, y and th (and the wrapper's target_uni).

Value

A list with the updated drift_method (reset when it drifted), the logical drifted, the rows the monitored signal covers and the drifter_output produced on this batch (captured before the reset, for diagnostics).


heimdall documentation built on Dec. 2, 2026, 5:08 p.m.