| mmqt_test | R Documentation |
Assigns each batch to the closest modality of an mmqt()
model (Eq. 7) and compares its total variation statistic with the
threshold of that modality (Eqs. 8-9).
mmqt_test(model, batches)
model |
An |
batches |
A batch (matrix or data frame) or a list of batches, with
the columns of the training set and |
A data frame with one row per batch: the assigned modality, the
statistic, the threshold of the modality and whether a change is
detected (drift).
set.seed(1)
training <- lapply(1:40, function(i) matrix(stats::rnorm(128), ncol = 2))
model <- mmqt(training, bins = 8, n_modalities = 1, n_sim = 2000)
mmqt_test(model, list(matrix(stats::rnorm(128), ncol = 2), matrix(stats::rnorm(128, 1), ncol = 2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.