ExpectedThreat.predict(actions, use_interpolation=False)#

Compute the xT values for the given actions.

xT should only be used to value actions that move the ball and also keep the current team in possession of the ball.

  • actions (pd.DataFrame) – Actions, in SPADL format.

  • use_interpolation (bool) – Indicates whether to use bilinear interpolation when inferring xT values. Note that this requires Scipy to be installed (pip install scipy).

Return type

ndarray[Any, dtype[float64]]