View source: R/dsg_benchmark.R
| dsg_drift | R Documentation |
Moves a dsg_source() to another concept and verifies the
drift: a virtual drift must make the kernel two-sample test
(dsg_mmd_test()) reject at virtual_p_value, and a real drift must change
at least real_drift_level of the labels of the same points. Candidates that
fail are discarded; after max_tries candidates, the strongest real drift
found is used with a warning.
dsg_drift(source, type = "a")
source |
|
type |
|
list with the updated source, the logical flags virtual and
real, and the verification statistics p_value (two-sample test, NA
without virtual drift) and label_change (share of changed labels, NA
without real drift)
set.seed(2)
drift <- dsg_drift(dsg_sine(), "r")
drift$real
drift$label_change
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.