socceraction.vaep.VAEP.compute_features

VAEP.compute_features(game, game_actions)

Transform actions to the feature-based representation of game states.

Parameters:
  • game (pd.Series) – The SPADL representation of a single game.

  • game_actions (pd.DataFrame) – The actions performed during game in the SPADL representation.

Returns:

features – Returns the feature-based representation of each game state in the game.

Return type:

pd.DataFrame