deriva 0.2.0
CRAN release: 2026-09-20
-
.warningand.driftnow follow one contract across all 22 detectors:NAmeans the detector cannot judge that observation yet (warm-up),FALSEthat it is active and has not flagged drift as of that observation. Behaviour change:"kswin","adwin","seed","seqdrift2","fhddm","fhddms"and the"mddm_*"detectors used to reportFALSEwhile warming up and now reportNA;"fhddms"and"mddm_*", which have no warning level, now give.warning = NA. Detections themselves are unchanged. -
"seed"no longer has analphahyperparameter: the algorithm never read it. -
fit(),advance(),augment()anddetect_drift()now refuse data that already has a.warning,.driftor.phasecolumn instead of overwriting it, andadvance()refuses a batch whose columns differ from the baseline’s. -
"wstd","ftdd","fpdd"and"fsdd"are much faster: their per-observation tests use closed forms that give identical p-values. - Hyperparameter values are now validated when the detector is specified. Out-of-range values, wrong types and impossible combinations (e.g.
"kswin"withwindow_size < stat_size + 2) abort with a clear message instead of running and returning silently wrong flags.drift_detector()also rejects amethodthat is not a single string. -
drift_detector()gainsseed: the stochastic detectors ("kswin","seqdrift2") draw from a private random stream carried inside the fitted object. Results are reproducible, independent of batching, and the session’s global RNG is no longer advanced. -
drift_detector()gainskeep(default10000), the number of most recent rows retained in the history. This bounds memory and removes the quadratic cost of row-by-rowadvance(). Behaviour change: histories longer than 10000 rows are now truncated, soaugment()on a fitted detector returns at most the lastkeeprows; usekeep = Inffor the previous behaviour.keep = Infandkeep = 0emit a warning when the detector is specified. -
tidy(),glance()andprint()report running totals stored in the fitted object, so they stay exact when the history is truncated. - Fitted detectors saved with deriva 0.1.0 must be refit.
- deriva now declares
Depends: R (>= 4.1)and importsutils, which"kswin"already used. - Two reference datasets ship with the package,
credit_monitoringandsensor_monitoring, and the vignettes (“Getting Started with deriva”, and the new “Distribution-Based Drift Detection”) now walk through them instead of generating data inline.
deriva 0.1.0
CRAN release: 2026-08-03
- Initial CRAN release.
- 22 drift detectors: DDM, EDDM, HDDM_A, HDDM_W, EWMA, RDDM, STEPD, FHDDM, FHDDMS, MDDM_A/E/G, WSTD, FTDD, FPDD, FSDD, CUSUM, KSWIN, ADWIN, Page-Hinkley, SEED, SeqDrift2.
- Tidy interface:
drift_detector()→fit()→advance()withaugment(),tidy(),glance(), andautoplot()generics. -
detect_drift()one-shot shortcut. -
add_prediction_error()bridge from tidymodels workflows. -
sim_drift_stream()andsim_dist_stream()for synthetic benchmarking.
