The features most alike a given one in one graph (Jaccard similarity of their neighbours: 1 for the same neighbours, 0 for none in common).
Usage
vp_similar_features(
model,
feature,
graph = c("excludes", "requires", "atleastone")
)Arguments
- model
A model, from
vp_generate()orvp_read(), in its complete or its minimal form.- feature
The name of a variable feature of the model.
- graph
Which graph:
"requires","excludes"or"atleastone"(the last one needsor_graph = TRUEinvp_generate()).
Examples
band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_similar_features(band, "BLEv40")
#> # A tibble: 10 × 2
#> feature similarity
#> <chr> <dbl>
#> 1 MovementFilter 0.833
#> 2 BT40 0.4
#> 3 Screen 0.2
#> 4 OLED 0.2
#> 5 CapacityButton 0.2
#> 6 TouchScreen 0.143
#> 7 ContactlessPayment 0.143
#> 8 BLEv42 0.143
#> 9 NFC 0.143
#> 10 HeartRateSensor 0