This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
4_evaluation.yml
79 lines (64 loc) · 2.83 KB
/
4_evaluation.yml
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
73
74
75
76
77
78
79
target_default: 4_evaluation
packages:
- tidyr
- dplyr
- docstring
- readr
- feather
sources:
- 4_evaluation/src/evaluate_models.R
- 4_evaluation/src/model_evaluation_functions.R
- 4_evaluation/src/modify_data.R
targets:
4_evaluation:
depends:
- 4_evaluation/out/gen_metrics_all_obs.csv
- 4_evaluation/out/gen_metrics_by_seg.csv
- 4_evaluation/out/gen_metrics_by_year.csv
- 4_evaluation/out/gen_metrics_by_month.csv
- 4_evaluation/out/exceedance_metrics_all_obs.csv
- 4_evaluation/out/exceedance_metrics_by_seg.csv
- 4_evaluation/out/exceedance_metrics_by_year.csv
- 4_evaluation/out/exceedance_metrics_by_month.csv
- 4_evaluation/out/max_metrics_by_seg_year.csv
#fetching the data
modify_long_dat:
command: modify_data('3_predictions/out/compare_predictions_obs.feather.ind')
# general metrics at all, seg, year, month scales
4_evaluation/out/gen_metrics_all_obs.csv:
command: calc_all_metric(file_path = target_name,
dat_in = modify_long_dat, grouping = NA)
depends: 4_evaluation/src/model_evaluation_functions.R
4_evaluation/out/gen_metrics_by_seg.csv:
command: calc_all_metric(file_path = target_name,
dat_in = modify_long_dat, grouping = I('seg_id_nat'))
depends: 4_evaluation/src/model_evaluation_functions.R
4_evaluation/out/gen_metrics_by_year.csv:
command: calc_all_metric(file_path = target_name,
dat_in = modify_long_dat, grouping = I('year'))
depends: 4_evaluation/src/model_evaluation_functions.R
4_evaluation/out/gen_metrics_by_month.csv:
command: calc_all_metric(file_path = target_name,
dat_in = modify_long_dat, grouping = I('month'))
depends: 4_evaluation/src/model_evaluation_functions.R
# exceedance metrics
4_evaluation/out/exceedance_metrics_all_obs.csv:
command: calc_exc_metric(file_path = target_name,
dat_in = modify_long_dat, grouping = NA)
depends: 4_evaluation/src/model_evaluation_functions.R
4_evaluation/out/exceedance_metrics_by_seg.csv:
command: calc_exc_metric(file_path = target_name,
dat_in = modify_long_dat, grouping = I('seg_id_nat'))
depends: 4_evaluation/src/model_evaluation_functions.R
4_evaluation/out/exceedance_metrics_by_year.csv:
command: calc_exc_metric(file_path = target_name,
dat_in = modify_long_dat, grouping = I('year'))
depends: 4_evaluation/src/model_evaluation_functions.R
4_evaluation/out/exceedance_metrics_by_month.csv:
command: calc_exc_metric(file_path = target_name,
dat_in = modify_long_dat, grouping = I('month'))
depends: 4_evaluation/src/model_evaluation_functions.R
# max timing and magnitude exceedance_metrics_by_month
4_evaluation/out/max_metrics_by_seg_year.csv:
command: calc_max_metric(file_path = target_name, dat_in = modify_long_dat)
depends: 4_evaluation/src/model_evaluation_functions.R