adapt_retrain: Baseline: periodic retraining

View source: R/ac_reference.R

adapt_retrainR Documentation

Baseline: periodic retraining

Description

Drift baseline that retrains a single model from scratch on its sliding window at every batch (train_retrain()), with no drift reaction and no concept reuse.

Usage

adapt_retrain(
  method,
  train_size,
  memory = memory_undersampling(),
  warmup_size = 100L,
  th = NULL
)

Arguments

method

Classifier (e.g. cla_nb, torch_cla_mlp).

train_size

Rows needed to train and the sliding-window size.

memory

Memory prototype (default memory_undersampling()).

warmup_size

Minimum rows to train (default 100).

th

Decision threshold; NULL (default) learns the F1-optimal threshold.

Value

An adp_recurrent object.


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