-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path3-diagnostic_figures.R
More file actions
39 lines (29 loc) · 1.59 KB
/
3-diagnostic_figures.R
File metadata and controls
39 lines (29 loc) · 1.59 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
#' Create some diagnostic figures to get an overview of the results
library(dynbenchmark)
library(tidyverse)
library(dynplot)
experiment("06-benchmark")
############################################################
############### PART THREE: GENERATE FIGURES ###############
############################################################
num_replicates <- 1
list2env(read_rds(result_file("benchmark_results_input.rds")), environment())
list2env(read_rds(result_file("benchmark_results_normalised.rds")), environment())
metrics_info <- dyneval::metrics %>%
slice(match(metrics, metric_id)) %>%
add_row(metric_id = "overall", plotmath = "overall", latex = "\\textrm{overall}", html = "overall", long_name = "Overall score", category = "average", type = "overall", perfect = 1, worst = 0)
# get ordering of methods
method_ord <-
data_aggregations %>%
filter(dataset_source == "mean", dataset_trajectory_type == "overall") %>%
arrange(desc(overall)) %>%
select(method_id, method_name) %>%
mutate_all(factor)
# create method_id_f factor in all data structures
data_aggregations <- data_aggregations %>% mutate(method_id = factor(method_id, levels = method_ord$method_id), method_name = factor(method_name, levels = method_ord$method_name))
data <- data %>% mutate(method_id = factor(method_id, levels = method_ord$method_id), method_name = factor(method_name, levels = method_ord$method_name))
# execute plotting scripts
source(scripts_file("3a-overall_comparison.R"))
source(scripts_file("3b-time_mem_predictions.R"))
source(scripts_file("3c-normalisation.R"))
source(scripts_file("3d-compare_sources.R"))