-
Notifications
You must be signed in to change notification settings - Fork 0
/
calc_predicted_aim_schema.yml
103 lines (95 loc) · 2.25 KB
/
calc_predicted_aim_schema.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Holds the variables needed to calculate match predictions
# TODO: add example predicted_aim dict here
# Contains information about this schema file
schema_file:
# Version of schema file
# Incremented every merged schema change
version: 2
# TODO: change back to nested variables once validation is fixed
--tele_fields:
score:
vars: [tele_avg_amp, tele_avg_unamplified_speaker, tele_avg_amplified]
type: float
cycle_time:
vars: [avg_expected_notes]
type: float
# Fields used to calculate ensemble RP and endgame score
--endgame_fields:
onstage_rate:
var: stage_percent_success_all
type: float
park_rate:
var: parked_percent
type: float
climb_after_rate:
var: climb_after_percent_success
type: float
trap_rate:
var: trap_percent_success
type: float
# Fields used to calculate win chance
--win_chance:
auto_avg_amp:
sd: auto_sd_amp
weight: 2
auto_avg_speaker:
sd: auto_sd_speaker
weight: 5
tele_avg_amp:
sd: tele_sd_amp
weight: 1
tele_avg_unamplified_speaker:
sd: tele_sd_unamplified_speaker
weight: 2
tele_avg_amplified:
sd: tele_sd_amplified
weight: 5
endgame_avg_total_points:
sd: endgame_sd_total_points
weight: 1
# Stores fields that will be added to database but do not require calculations
data:
match_number:
type: int
team_numbers:
type: List
alliance_color_is_red:
type: bool
# Whether or not actual TBA data has been pulled to replace the predicted data
has_actual_data:
type: bool
actual_score:
type: int
# Charge RP
actual_rp1:
type: float
# Link RP
actual_rp2:
type: float
won_match:
type: bool
# Predicted values at time of the actual match
final_predicted_score:
type: float
requires: [obj_team, tba_team]
final_predicted_rp1:
type: float
requires: [obj_team]
final_predicted_rp2:
type: float
requires: [obj_team]
# Information on predicted values that will be performed
predicted_values:
predicted_score:
type: float
requires: [obj_team, tba_team]
# TODO: find RPs when TBA updates
predicted_rp1:
type: float
requires: [obj_team]
predicted_rp2:
type: float
requires: [obj_team]
win_chance:
type: float
requires: [obj_team]