Spaces:
Sleeping
Sleeping
convert shap_values to dataframe
Browse files
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 |
|