sublee/glicko2

ZeroDivisionError for teams that have no matches in a series

Closed this issue · 3 comments

If a team has no matches in a series, Glicko2().rate() returns ZeroDivisionError since variance_inv never gets set to something other than zero. This means that teams with 0 matches will not get decayed.

According to the paper in this case you only compute step 6: phi_star. Agree that it's missing in the code.

this has been fixed right?

commit: 99285aa#diff-d262ec5f69c9f38c308b361f71fbc41d

Looks like it.