Skip to content

Commit de2021a

Browse files
committed
feat: more statsbomb xg features
1 parent f6a3c1a commit de2021a

File tree

9 files changed

+2249
-707
lines changed

9 files changed

+2249
-707
lines changed

socceraction/features/__init__.py

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,21 @@
3333
"""
3434

3535
from .event.statsbomb import (
36-
statsbomb_assist,
3736
statsbomb_counterattack,
38-
statsbomb_defenders_position,
39-
statsbomb_first_touch,
40-
statsbomb_free_projection,
41-
statsbomb_goalkeeper_position,
42-
statsbomb_open_goal,
37+
statsbomb_shot_assist,
38+
statsbomb_shot_defenders_in_radius,
39+
statsbomb_shot_first_touch,
40+
statsbomb_shot_goal_face_occlusion,
41+
statsbomb_shot_goal_face_occlusion_smoothed,
42+
statsbomb_shot_goalkeeper_position,
4343
statsbomb_shot_impact_height,
44+
statsbomb_shot_impact_height_cat,
45+
statsbomb_shot_one_on_one,
46+
statsbomb_shot_open_goal,
47+
statsbomb_shot_pressure_context,
48+
statsbomb_shot_pressure_context_smoothed,
49+
statsbomb_shot_technique,
50+
statsbomb_under_pressure,
4451
statsbomb_xg,
4552
)
4653
from .spadl.actiontype import actiontype, actiontype_onehot
@@ -49,6 +56,7 @@
4956
bodypart_detailed,
5057
bodypart_detailed_onehot,
5158
bodypart_onehot,
59+
bodypart_prefered,
5260
)
5361
from .spadl.contextual import goalscore, time
5462
from .spadl.location import endlocation, endpolar, movement, startlocation, startpolar
@@ -78,6 +86,7 @@
7886
"bodypart_detailed",
7987
"bodypart_onehot",
8088
"bodypart_detailed_onehot",
89+
"bodypart_prefered",
8190
"startlocation",
8291
"endlocation",
8392
"startpolar",
@@ -90,7 +99,6 @@
9099
"team",
91100
"time",
92101
"goalscore",
93-
"goal_from_shot",
94102
"shot_dist",
95103
"shot_location",
96104
"shot_angle",
@@ -102,12 +110,19 @@
102110
"rebound",
103111
"caley_grid",
104112
"statsbomb_xg",
105-
"statsbomb_open_goal",
106-
"statsbomb_first_touch",
107-
"statsbomb_free_projection",
108-
"statsbomb_goalkeeper_position",
109-
"statsbomb_defenders_position",
110-
"statsbomb_assist",
113+
"statsbomb_shot_one_on_one",
114+
"statsbomb_shot_open_goal",
115+
"statsbomb_shot_first_touch",
116+
"statsbomb_shot_defenders_in_radius",
117+
"statsbomb_shot_goal_face_occlusion",
118+
"statsbomb_shot_goal_face_occlusion_smoothed",
119+
"statsbomb_shot_goalkeeper_position",
120+
"statsbomb_shot_pressure_context",
121+
"statsbomb_shot_pressure_context_smoothed",
122+
"statsbomb_shot_assist",
123+
"statsbomb_shot_technique",
111124
"statsbomb_counterattack",
112125
"statsbomb_shot_impact_height",
126+
"statsbomb_shot_impact_height_cat",
127+
"statsbomb_under_pressure",
113128
]

0 commit comments

Comments
 (0)