socceraction.xthreat.move_transition_matrix¶
- socceraction.xthreat.move_transition_matrix(actions, l=16, w=12)¶
Compute the move transition matrix from the given actions.
This is, when a player chooses to move, the probability that he will end up in each of the other cells of the grid successfully.
- Parameters:
actions (pd.DataFrame) – Actions, in SPADL format.
l (int) – Amount of grid cells in the x-dimension of the grid.
w (int) – Amount of grid cells in the y-dimension of the grid.
- Returns:
The transition matrix.
- Return type:
np.ndarray