convert_feature_name_to_idx {shapr} | R Documentation |
Convert feature names into feature indices
Description
Functions that takes a causal_ordering
specified using strings and convert these strings to feature indices.
Usage
convert_feature_name_to_idx(causal_ordering, labels, feat_group_txt)
Arguments
causal_ordering |
List.
Not applicable for (regular) non-causal or asymmetric explanations.
|
labels |
Vector of strings containing (the order of) the feature names. |
feat_group_txt |
String that is either "feature" or "group" based on
if |
Value
The causal_ordering
list, but with feature indices (w.r.t. labels
) instead of feature names.
Author(s)
Lars Henry Berge Olsen