| drifter_input | R Documentation |
Builds the signal a detector monitors from a prepared batch, so
that model wrappers (such as adp_retrain() and adp_recurrent()) feed every detector
family the same way, without branching on the detector's class. Each family
implements its own method; a new detector inherits the right behaviour by
belonging to a family (error_based, dist_based, mv_dist_based,
multi_criteria) or falls back to the default, which feeds the whole batch
(this also covers the dummy baselines dfr_passive() and dfr_inactive(),
whose own update_state() decides whether a drift is reported).
drifter_input(obj, ctx)
obj |
Drifter object. |
ctx |
A list with the prepared batch and the prediction context:
|
A list with value, the signal passed to fit(), and rows, the
indices of the batch rows that value covers (every row, except error-based
detectors, which skip rows without a prediction).
ctx <- list(features = data.frame(a = rnorm(10), b = rnorm(10)))
drifter_input(dfr_inactive(), ctx)$rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.