class ScorelinePrediction[source]

ScorelinePrediction(home_goals:int, away_goals:int, probability:float)

ScorelinePrediction(home_goals: int, away_goals: int, probability: float)

Outcomes[source]

Enum = [HOME_WIN, DRAW, AWAY_WIN]

An enumeration.

class OutcomePrediction[source]

OutcomePrediction(outcome:Outcomes, probability:float)

OutcomePrediction(outcome: mezzala.models.Outcomes, probability: float)

scoreline_to_outcome[source]

scoreline_to_outcome(home_goals, away_goals)

scorelines_to_outcomes[source]

scorelines_to_outcomes(scorelines)

class DixonColes[source]

DixonColes(adapter, blocks=[BaseRate(), HomeAdvantage(), TeamStrength()], weight=UniformWeight(), params=None)

Dixon-Coles models in Python