Skip to contents

Do communities stay the same? For each step: how alike the communities of two consecutive versions are (on the features they share), and, as a yardstick, how alike two runs of the algorithm on the same version are. If the second number is not clearly higher than the first, the change cannot be told apart from the randomness.

Usage

vp_community_history(history, seed = 1)

Arguments

history

A history: the versions of a model, from vp_read_history() or vp_history(), oldest first.

seed

The seed of the random numbers, so that the result can be repeated. The random state of the session is left as it was.

Value

A tibble with step, from, to, between_versions and same_version_two_runs.

Examples

gens <- c("miband1", "miband2", "miband3", "miband4", "miband6")
history <- vp_history(
  vp_example(paste0(gens, "_realized.uvl")),
  versions = gens,
  or_graph = TRUE
)
vp_community_history(history)
#> # A tibble: 4 × 5
#>    step from    to      between_versions same_version_two_runs
#>   <int> <fct>   <fct>              <dbl>                 <dbl>
#> 1     1 miband1 miband2            1                         1
#> 2     2 miband2 miband3            0.884                     1
#> 3     3 miband3 miband4            0.752                     1
#> 4     4 miband4 miband6            0.576                     1