We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plot_features(cases = )
x
library(lime) library(MASS) iris_test <- iris[1, 1:4] iris_train <- iris[-1, 1:4] iris_lab <- iris[[5]][-1] model <- lda(iris_train, iris_lab) explanation <- lime(iris_train, model) explanations <- explain(iris_test, explanation, n_labels = 1, n_features = 2) plot_features(explanations, cases = 1)
When the data frame X to be explained has rownames, cases must be a character. It would be great if cases would also accept integer indices here:
cases
rownames(iris_test) <- "flower" explanations <- explain(iris_test, explanation, n_labels = 1, n_features = 2) plot_features(explanations, cases = 1) #> Error: No explanations to plot plot_features(explanations, cases = "flower")
Created on 2023-11-12 with reprex v2.0.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When the data frame X to be explained has rownames,
cases
must be a character. It would be great ifcases
would also accept integer indices here:Created on 2023-11-12 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: