-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_labels.R
72 lines (57 loc) · 1.82 KB
/
_labels.R
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# target.label.list <- c("LIFE_S_R", "PERF09", "PERF10", "PERF11")
target.label.list <- c("PERF10")
# target.label.list <- c("PERF09")
features.set.labels.list <- c("big5items", "big5composites")
# features.set.labels.list <- c("big5composites")
# features.set.labels.list <- c("big5items")
job.labels.list <- c("sales", "R&D", "support", "all")
model.permutations.labels <- crossing(
target_label = target.label.list,
features_set_label = features.set.labels.list,
job_label = job.labels.list
)
model.permutations.strings <- model.permutations.labels %>%
pmap_chr(function(target_label, features_set_label, job_label) {
paste(target_label, features_set_label, job_label, sep = ".")
})
data.labels.long <- readRDS("data/data.labels.rds")
data.label.all <- "data/models.list.PERF10.ALL.rds"
permutation.fi.lists.label <- "data/datasets.permutation.fi.lists.rds"
permutation.fi.lists.boxplots.label <- "data/datasets.permutation.fi.lists.boxplots.rds"
# nominal <- FALSE # with ordinal as ORDERED factors
nominal <- TRUE # with ordinal as NOMINAL factor
SEED <- 171
# cross-validation repetitions
# CV.REPEATS <- 2
# CV.REPEATS <- 10
CV.REPEATS <- 100
# try first x rows of training set
# TRY.FIRST <- NULL
TRY.FIRST <- 50
# TRY.FIRST <- 100
# split ratio
SPLIT.RATIO <- 1.0
# imputation method
IMPUTE.METHOD <- "noimpute"
# IMPUTE.METHOD <- "knnImpute"
# IMPUTE.METHOD <- "bagImpute"
# prefix
PREFIX <- "data/models.list"
# PREFIX <- "data/testruns/models.list"
# model labels for publication tables
models.labels.published <- c("LR", "kNN", "GBM", "RF", "SVM")
# color scheme
color.scheme <- c(
"kNN" = "#F8766D",
"SVM" = "#D55E00",
"RF" = "#CC79A7",
"GBM" = "#E69F00",
"LR" = "#0072B2"
)
# color.scheme <- c(
# "kNN" = "#A3A500",
# "SVM" = "#39B600",
# "RF" = "#00C19C",
# "GBM" = "#00B6EA",
# "LR" = "darkgrey"
# )