Spaces:
Sleeping
Sleeping
remove doMC
Browse files- calculate_shap.R +3 -3
calculate_shap.R
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
suppressPackageStartupMessages(library(dplyr))
|
2 |
suppressPackageStartupMessages(library(fastshap)) # for fast (approximate) Shapley values
|
3 |
suppressPackageStartupMessages(library(caret))
|
4 |
-
suppressPackageStartupMessages(library(doMC))
|
5 |
|
6 |
-
registerDoMC(cores = 10)
|
7 |
|
8 |
|
9 |
p_function_G <-
|
@@ -325,4 +325,4 @@ shap_beeswarm_plot<-function(shap_values,dataset){
|
|
325 |
xlab("Feature")+ylab("SHAP value")+
|
326 |
theme(axis.text.x = element_text(angle = 45, vjust = 0.5, hjust=1))
|
327 |
beeswarm_plot
|
328 |
-
}
|
|
|
1 |
suppressPackageStartupMessages(library(dplyr))
|
2 |
suppressPackageStartupMessages(library(fastshap)) # for fast (approximate) Shapley values
|
3 |
suppressPackageStartupMessages(library(caret))
|
4 |
+
#suppressPackageStartupMessages(library(doMC))
|
5 |
|
6 |
+
#registerDoMC(cores = 10)
|
7 |
|
8 |
|
9 |
p_function_G <-
|
|
|
325 |
xlab("Feature")+ylab("SHAP value")+
|
326 |
theme(axis.text.x = element_text(angle = 45, vjust = 0.5, hjust=1))
|
327 |
beeswarm_plot
|
328 |
+
}
|