socceraction.vaep.VAEP.compute_labels

VAEP.compute_labels(game, game_actions)

Compute the labels for each game state in the given game.

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:

labels – Returns the labels of each game state in the game.

Return type:

pd.DataFrame