You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some explainability functions require variable importances for a predictor column not 1-hot encoded column.
Current implementation accomplishes that by first matching all the variable importances with predictor columns and from the remaining variable importances prefixes (from the parts separated by .) are created and the longest prefix present amongst the predictor columns is used as a valid column name.
For example:
{{df <- data.frame(cat = c("a.b","b.c","c.d"), cat.b=c("setosa", "versicolor", "virginica"))}}
varimps will be from some models with the following names:
cat.a.b
cat.b.c
cat.c.d
cat.b.setosa
cat.b.versicolor
cat.b.virginica
previous situation gets matched correctly but if we change the situation slightly:
{{df$b.c. <- df$cat.b}}
we cannot match it correctly by just using a prefix.
The text was updated successfully, but these errors were encountered:
Some explainability functions require variable importances for a predictor column not 1-hot encoded column.
Current implementation accomplishes that by first matching all the variable importances with predictor columns and from the remaining variable importances prefixes (from the parts separated by
.
) are created and the longest prefix present amongst the predictor columns is used as a valid column name.For example:
{{df <- data.frame(cat = c("a.b","b.c","c.d"), cat.b=c("setosa", "versicolor", "virginica"))}}
varimps will be from some models with the following names:
previous situation gets matched correctly but if we change the situation slightly:
{{df$b.c. <- df$cat.b}}
we cannot match it correctly by just using a prefix.
The text was updated successfully, but these errors were encountered: