harpomaxx commited on
Commit
5835025
1 Parent(s): 6bda1fa

convert shap_values to dataframe

Browse files
Files changed (1) hide show
  1. app.R +1 -1
app.R CHANGED
@@ -263,7 +263,7 @@ server <- function(input, output) {
263
  new_dataset <- cbind(new_dataset, predictions)
264
 
265
  shap_values <- calculate_shap(new_dataset, model, nsim = 30)
266
- pall<-shap_summary_plot(shap_values)
267
  pall+xlim(0,0.35)
268
  })
269
 
 
263
  new_dataset <- cbind(new_dataset, predictions)
264
 
265
  shap_values <- calculate_shap(new_dataset, model, nsim = 30)
266
+ pall<-shap_summary_plot(shap_values %>% as.data.frame())
267
  pall+xlim(0,0.35)
268
  })
269