| dfr_aedd | R Documentation |
AEDD is an unsupervised multivariate detector that compares reconstruction errors produced by an autoencoder on reference and recent windows. Because it monitors changes in the input distribution rather than classifier performance, this implementation is primarily aimed at virtual concept drift. The method follows Kaminskyi, Li, and Muller (2022) doi:10.1109/ICDMW58026.2022.00109.
dfr_aedd(
encoding_size,
ae_class = NULL,
ae_params = list(batch_size = 32, num_epochs = 1000, learning_rate = 0.001,
error_function = "mae"),
window_size = 100,
window_type = "sliding",
monitoring_step = floor(window_size/2),
criteria = "mann_whitney",
alpha = 0.01,
threshold = 0.01,
column_threshold = NULL,
target_feat = NULL
)
encoding_size |
Encoding Size |
ae_class |
Autoencoder constructor. When |
ae_params |
Named list of arguments forwarded to |
window_size |
Number of most recent rows kept by the detector. The oldest half is the reference window and the newest half the recent window. |
window_type |
Window policy. |
monitoring_step |
Number of rows between two consecutive checks. The default checks twice per window. |
criteria |
The method used to check for a drift. One of |
alpha |
Significance level of the hypothesis-test criteria ( |
threshold |
Drift threshold of the |
column_threshold |
|
target_feat |
Names of the columns to be monitored. |
The autoencoder expects inputs in the [0, 1] range. Values
outside that range are clipped to it, and the detector warns the first time
this happens, so the data should be normalized beforehand (for example with
daltoolbox::minmax()). ae_class must be a constructor accepting the
arguments input_size and encoding_size plus the entries of ae_params,
whose objects implement fit() and transform().
The autoencoder is trained on the reference window the first time the window is full, and again after every drift or whenever new columns appear.
With an encoder-decoder, the reconstruction error of each row is summarised
into a single value, so every criterion sees one column. With an encoder,
the latent representation is monitored directly and there is one column per
latent dimension (encoding_size).
When column_threshold is NULL, the hypothesis-test criteria
("mann_whitney", "kolmogorov_smirnov" and "levene") test every column
and combine the per-column p-values with a Bonferroni correction, instead of
pooling all columns into a single sample.
dfr_aedd object
Kaminskyi, D., Li, B., and Muller, E. (2022). Reconstruction-based unsupervised drift detection over multivariate streaming data. In 2022 IEEE International Conference on Data Mining Workshops (ICDMW). doi:10.1109/ICDMW58026.2022.00109
# Training an autoencoder is too slow for an inline example. A rendered
# walkthrough is available at
# https://github.com/cefet-rj-dal/heimdall/blob/main/examples/1_detection/dfr_aedd.md
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.