Git Product home page Git Product logo

lichess-ordo's People

Contributors

jazzzooo avatar

Stargazers

 avatar

Watchers

 avatar

lichess-ordo's Issues

document input data

Would you mind commenting to explain what these are. Once I understand that, I think the rest is self-explaining

n_players = int.from_bytes(f.read(4), "little")
n_opponents = np.fromfile(f, dtype=np.uint16, count=n_players).astype(np.intc)
total = np.fromfile(f, dtype=np.uint16, count=n_players).astype(np.float64)
scored = np.fromfile(f, dtype=np.uint16, count=n_players).astype(np.float64) / 2
opponents = np.ascontiguousarray(np.fromfile(f, dtype=np.uint32, count=n_pairings).astype(np.intc))
opp_played = np.ascontiguousarray(np.fromfile(f, dtype=np.uint16, count=n_pairings).astype(np.intc))

idea: draw model

Currently you fit using predicted_score = L(eloA-eloB), with L(x)=1/(1+10^(-x/400)). This is the standard ELO model.

Instead you could try adding the eloDraw factor from BayesElo model like that:

P(A wins)=L(eloA-eloB-eloDraw)
P(B wins)=L(eloB-eloA-eloDraw)
P(draw)=1-P(A wins)-P(B wins)

From which you get the predicted_score for the pairing

predicted=P(A wins)+0.5*P(draw)

And fit the elo as you do now.

To make things easier, you can treat eloDraw as a hyper parameter. In fact you can use the global statistics of your total sample and the equation above to calculate eloDraw analytically.

In theory this should improve the quality of fit, and out of sample predictions. In practice this has yet to be demonstrated empirically on such a dataset, and also put in the balance with speed performance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.