-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathSLIDEcv.R
More file actions
49 lines (40 loc) · 1.6 KB
/
SLIDEcv.R
File metadata and controls
49 lines (40 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
require(doParallel)
require(dplyr)
library(SLIDE)
library(EssReg)
library(yaml)
args <- commandArgs(trailingOnly = T)
yaml_path <- args[1]
replicate <- args[2]
sprintf("The ymal path is: %s",yaml_path)
er_input <- yaml::yaml.load_file(as.character(yaml_path))
#for(j in 1:er_input$nreps){
paperBench(yaml_path, replicate=replicate)
#}
# er_input <- yaml::yaml.load_file(yaml_path)
#
# pathLists <- list.files(er_input$out_path,recursive = T,pattern = "results")
# perfList <- lapply(paste0(er_input$out_path,pathLists), readRDS)
# perRes <- do.call(rbind,lapply(perfList,function(x){x$final_corr}))
#
#
# if (er_input$eval_type == "corr") {
# lambda_boxplot <- ggplot2::ggplot(data = perRes,
# ggplot2::aes(x = method,
# y = corr,
# fill = method)) +
# ggplot2::geom_boxplot() +
# ggplot2::labs(fill = "Method") +
# ggplot2::scale_alpha(guide = 'none')
# } else {
# lambda_boxplot <- ggplot2::ggplot(data = perRes,
# ggplot2::aes(x = method,
# y = auc,
# fill = method)) +
# ggplot2::geom_boxplot() +
# ggplot2::labs(fill = "Method") +
# ggplot2::scale_alpha(guide = 'none')
# }
# library(ggplot2)
# ggsave(paste0(er_input$out_path,"/delta",er_input$delta,"lambda",er_input$lambda,"_boxplot.pdf"),lambda_boxplot)
# saveRDS(perRes,file=paste0(er_input$out_path,"/delta",er_input$delta,"lambda",er_input$lambda,"_boxplot_data.rds"))