-
Notifications
You must be signed in to change notification settings - Fork 0
/
features_meaning.py
89 lines (88 loc) · 5.37 KB
/
features_meaning.py
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
dict_metric = {'Cmp': 'Passes Completed',
'PassAtt': 'Passes Attempted',
'CmpPct': 'Pass Completion %',
'PassTotDist': 'Total Pass Distance',
'PassPrgDist': 'Progressive Pass Distance',
'Cmp1': 'Passes Completed Short',
'Att1': 'Passes Attempted Short',
'CmpPct1': 'Pass Completion % Short',
'Cmp2': 'Passes Completed Medium',
'Att2': 'Passes Attempted Medium',
'CmpPct2': 'Pass Completion % Medium',
'Cmp3': 'Passes Completed Long',
'Att3': 'Passes Attempted Long',
'CmpPct3': 'Pass Completion % Long',
'Ast': 'Assists',
'xAG': 'Expected Assisted Goals',
'xA': 'Expected Assists',
'KP': 'Key Passes',
'PassFinThird': 'Passes into Final Third',
'PPA': 'Passes into Penalty Area',
'CrsPA': 'Crosses into Penalty Area',
'PrgP': 'Progressive Passes',
'SCA': 'Shot Creating Actions',
'PassLiveShot': 'Live-ball passes that lead to a shot',
'PassDeadShot': 'Dead-ball passes that lead to a shot',
'TO': 'Take Ons that lead to a shot',
'ShLSh': 'Shots that lead to another shot',
'Fld': 'Fouls drawn that lead to a shot',
'DefShot': 'Defensive actions that lead to a shot',
'GCA': 'Goal Creating Actions',
'PassLiveGoal': 'Live-ball passes that lead to a goal',
'PassDeadGoal': 'Dead-ball passes that lead to a goal',
'TO1': 'Take Ons that lead to a goal',
'ShGoal': 'Shots that lead to a goal',
'FldGoal': 'Fouls drawn that lead to a goal',
'DefGoal': 'Defensive actions that lead to a goal',
'Tkl': 'Number of players tackled',
'TklW': 'Number of tackles won',
'TacklesDef3rd': 'Tackles in Defensive 3rd',
'TacklesMid3rd': 'Tackles in Middle 3rd',
'TacklesAtt3rd': 'Tackles in Attacking 3rd',
'DribTackled': 'Number of times dribbled tackled',
'DribContest': 'Number of times dribble contested',
'DribTackledPct': 'Percentage of times dribble tackled',
'Lost': 'Number of times dribbled past',
'Blocks': 'Number of times blocking the ball',
'BlockSh': 'Number of times blocking a shot',
'Pass': 'Number of times blocking a pass',
'Int': 'Interceptions',
'TklPlusInt': 'Tackles + Interceptions',
'Clr': 'Clearances',
'Err': 'Errors leading to a shot',
'Touches': 'Number of times touched the ball',
'DefPen': 'Touches in defensive penalty area',
'TouchDef3rd': 'Touches in defensive 3rd',
'TouchMid3rd': 'Touches in middle 3rd',
'TouchAtt3rd': 'Touches in attacking 3rd',
'AttPen': 'Touches in attacking penalty area',
'Live': 'Touches live ball',
'Att': 'Dribbles Attempted',
'Succ': 'Dribbles Completed Successfully',
'SuccPct': 'Dribble Success %',
'Tkld': 'Number of times tackled during dribble',
'TkldPct': 'Percentage of times tackled during dribble',
'Carries': 'Number of times carried the ball',
'TotDist': 'Total Distance Carried',
'PrgDist': 'Progressive Distance Carried',
'PrgC': 'Progressive Carries',
'CarriesFinThird': 'Carries into Final Third',
'CPA': 'Carries into Penalty Area',
'Mis': 'Miscontrols',
'Dis': 'Dispossessed',
'Rec': 'Number of times received the ball',
'PrgR': 'Progressive Passes Received',
'Gls': 'Goals',
'PK': 'Penalty Kicks Made',
'PKatt': 'Penalty Kicks Attempted',
'Sh': 'Shots total (Exclude PKs)',
'SoT': 'Shots on Target (Exclude PKs)',
'CrdY': 'Yellow Cards',
'CrdR': 'Red Cards',
'xG': 'Expected Goals',
'npxG': 'Non-Penalty Expected Goals'}
type_of_stats = {'Passing': ['Cmp', 'PassAtt', 'CmpPct', 'PassTotDist', 'PassPrgDist', 'Cmp1', 'Att1', 'CmpPct1', 'Cmp2', 'Att2', 'CmpPct2', 'Cmp3', 'Att3', 'CmpPct3', 'Ast', 'xAG', 'xA', 'KP', 'PassFinThird', 'PPA', 'CrsPA', 'PrgP'],
'Goal and Shot Creation': ['SCA', 'PassLiveShot', 'PassDeadShot', 'TO', 'ShLSh', 'Fld', 'DefShot', 'GCA', 'PassLiveGoal', 'PassDeadGoal', 'TO1', 'ShGoal', 'FldGoal', 'DefGoal'],
'Defensive Actions': ['Tkl', 'TklW', 'TacklesDef3rd', 'TacklesMid3rd', 'TacklesAtt3rd', 'DribTackled', 'DribContest', 'DribTackledPct', 'Lost', 'Blocks', 'BlockSh', 'Pass', 'Int', 'TklPlusInt', 'Clr', 'Err'],
'Possession': ['Touches', 'DefPen', 'TouchDef3rd', 'TouchMid3rd', 'TouchAtt3rd', 'AttPen', 'Live', 'Succ', 'Att', 'SuccPct', 'Tkld', 'TkldPct', 'Carries', 'TotDist', 'PrgDist', 'PrgC', 'CarriesFinThird', 'CPA', 'Mis', 'Dis', 'Rec'],
'Summary': ['Gls', 'Ast', 'PK', 'PKatt', 'Sh', 'SoT', 'CrdY', 'CrdR', 'Touches', 'xG', 'npxG', 'SCA', 'GCA', 'PassAtt', 'CmpPct', 'Carries', 'Att', 'SuccPct']}