socceraction.xthreat.ExpectedThreat.fit

ExpectedThreat.fit(actions)

Fits the xT model with the given actions.

Parameters:

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

Returns:

Fitted xT model.

Return type:

self