| dfr_iks | R Documentation |
Unsupervised drift detection of dos Reis et al. (2016): for every monitored
feature, a two-sample Kolmogorov-Smirnov test between a reference sample and
the sliding window of the last window_size observations, computed
incrementally with iks(). A drift is signalled when the test rejects the
null hypothesis for at least one feature. The detector monitors virtual
concept drift (the feature distribution), without labels.
dfr_iks(
target_feat = NULL,
window_size = 100,
alpha = 0.001,
ca = iks_ca(alpha),
reference = c("fixed", "consecutive"),
tie_break = TRUE,
seed = NULL
)
target_feat |
Features to be monitored (by default every numeric column). |
window_size |
Size |
alpha |
Significance level of the test. |
ca |
Coefficient of the critical value |
reference |
|
tie_break |
Pair every observation with a random value to break ties
( |
seed |
Seed of the private generator of the sketches. |
The output of each observation (drifter_output after fit()) has
the statistic of every monitored feature (D_<feature>) and drift.
After a drift with reference = "consecutive", both windows restart.
dfr_iks object
dos Reis, D. M., Flach, P., Matwin, S. and Batista, G. (2016). Fast unsupervised online drift detection using incremental Kolmogorov-Smirnov test. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 1545-1554. doi:10.1145/2939672.2939836
Zliobaite, I. (2010). Change with delayed labeling: when is it detectable? In 2010 IEEE International Conference on Data Mining Workshops, 843-850. doi:10.1109/ICDMW.2010.49
library(daltoolbox)
library(heimdall)
set.seed(1)
data <- data.frame(a = c(rnorm(600), rnorm(600, 1)), b = rnorm(1200))
detector <- fit(dfr_iks(window_size = 100, seed = 1), data)
which(detector$drifter_output$drift)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.