Skip to contents

The features whose selection decides the most (decision power). They describe the model; they are not necessarily the best questions to ask first, because the answer can be "no": the order that needs the fewest questions follows the entropy of each question (Heradio et al., Entropy 2014), which needs the probabilities of the features, beyond what the graphs give.

Usage

vp_most_decisive(model, n = 10)

Arguments

model

A model, from vp_generate() or vp_read(), in its complete or its minimal form.

n

How many rows to return.

Value

The columns feature, decision_power, requires and excludes of vp_feature_table(), the n largest first.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_most_decisive(band, n = 5)
#> # A tibble: 5 × 4
#>   feature            decision_power requires excludes
#>   <chr>                       <dbl>    <int>    <int>
#> 1 ContactlessPayment            1          7        3
#> 2 MovementFilter                1          4        6
#> 3 NFC                           1          7        3
#> 4 BT40                          0.9        0        9
#> 5 TouchScreen                   0.8        5        3