How far apart every two versions are: the Jaccard similarity of one graph among the features that can vary in both (the measure of vp_compare()), for every pair of versions, not only consecutive ones. A version much closer to an older one than to the one just before it reverted a change.
Usage
vp_version_distance(history, graph = c("requires", "excludes", "atleastone"))Arguments
- history
A history: the versions of a model, from
vp_read_history()orvp_history(), oldest first.- graph
Which graph:
"requires","excludes"or"atleastone"(the last one needsor_graph = TRUEinvp_generate()).
Value
A tibble with from, to (every pair, the older first), kept,
jaccard and distance (1 - jaccard).
See also
Other evolution:
vp_attachment(),
vp_auc(),
vp_changed_links(),
vp_co_change(),
vp_community_history(),
vp_compare(),
vp_disruptions(),
vp_edit_type(),
vp_eras(),
vp_feature_churn(),
vp_feature_states(),
vp_flip_flops(),
vp_forecast_size(),
vp_growth(),
vp_history_apply(),
vp_history_changes(),
vp_history_sizes(),
vp_hub_stability(),
vp_interaction_changes(),
vp_life_cycle(),
vp_link_lifetime(),
vp_prediction_table(),
vp_rename(),
vp_rename_candidates(),
vp_ripple(),
vp_state_moves(),
vp_top_movers()
Examples
gens <- c("miband1", "miband2", "miband3", "miband4", "miband6")
history <- vp_history(
vp_example(paste0(gens, "_realized.uvl")),
versions = gens,
or_graph = TRUE
)
vp_version_distance(history)
#> # A tibble: 10 × 5
#> from to kept jaccard distance
#> <fct> <fct> <int> <dbl> <dbl>
#> 1 miband1 miband2 0 1 0
#> 2 miband1 miband3 0 1 0
#> 3 miband1 miband4 0 1 0
#> 4 miband1 miband6 0 1 0
#> 5 miband2 miband3 8 0.353 0.647
#> 6 miband2 miband4 8 0.364 0.636
#> 7 miband2 miband6 8 0.235 0.765
#> 8 miband3 miband4 11 0.344 0.656
#> 9 miband3 miband6 11 0.586 0.414
#> 10 miband4 miband6 17 0.364 0.636