Skip to contents

Given a rack shelf, or in other words, row of a model rack, calculate feature importance table as a dataframe with three columns, feature, label and importance.

Usage

shelf_make_feature_importance(shelf)

Arguments

shelf

A rack shelf, or in other words, a row of a model rack extracted with rack_extract_shelf().

Examples

shelf_make_feature_importance(example_seg_shelf)
#> # A tibble: 54 × 3
#>    feature label                                                      importance
#>    <chr>   <chr>                                                           <dbl>
#>  1 m2_1_5  I feel like I’m too much of a burden on the people I care…      0.214
#>  2 m2_6_54 I usually pay the minimum monthly payment on my credit ca…      0.200
#>  3 m2_5_45 I just buy things that I might need and then return what …      0.181
#>  4 m2_6_56 Credit cards are designed to hurt card holders.                 0.166
#>  5 m2_4_32 I  feel confident about my ability to manage money              0.132
#>  6 m2_4_30 I’m a saver not a spender                                       0.111
#>  7 m2_6_48 I spend more than I otherwise would when paying with a cr…      0.105
#>  8 m2_1_1  Achieving personal success is most important to me              0    
#>  9 m2_1_2  I tend to accomplish small life goals at a time rather th…      0    
#> 10 m2_1_3  I have a specific role model that has had a significant i…      0    
#> # ℹ 44 more rows