Skip to content

rate in case of a draw (1vs1) #262

@vwxyzjn

Description

@vwxyzjn

Hi this is an awesome package and really helpful. Quick question: in the case of draw (1vs1), how should we use the rate function?

In the trueskill, there is a rate_1vs1(r1, r2, drawn=True) feature to rate the skill of the agent. Upon further inspection, the drawn=True manipulates the ranks as follows:

    ranks = [0, 0 if drawn else 1]
    teams = env.rate([(rating1,), (rating2,)], ranks, min_delta=min_delta)
    return teams[0][0], teams[1][0]

Could I handle the draw situation (1vs1) by overriding ranks like done in trueskill? What if I have a draw situation for 2vs2?

Also, see

from openskill import Rating, rate
a1 = b1  = Rating()
print(rate([[a1], [b1]], rank=[0,0]))

from trueskill import Rating, rate_1vs1
a1 = b1  = Rating()
print(rate_1vs1(a1, b1, drawn=True))
[[Rating(mu=27.63523138347365, sigma=8.065506316323548)], [Rating(mu=22.36476861652635, sigma=8.065506316323548)]]
(trueskill.Rating(mu=25.000, sigma=6.458), trueskill.Rating(mu=25.000, sigma=6.458))

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions