Giter Site home page Giter Site logo

Comments (3)

guidopetri avatar guidopetri commented on June 24, 2024

What I'm thinking for this is re-running the pipeline with a new table - something like game_positions, that has all the positions as FEN - and moving the game_evals table to be a position_evals kind of table. This will involve some work moving stuff around but it should be doable, and that way we'll (hopefully...) not re-evaluate identical positions all the time. This also avoids re-running the pipeline just to add the position column on game_evals - we just have to be prudent about the SQL.

After that, a view can also be created for game_evals that is just a join of game_positions and position_evals.

from chess-pipeline.

guidopetri avatar guidopetri commented on June 24, 2024

Here's the game plan:

  • write a Task that writes to a game_positions(id, game_link, half_move, fen)
  • write a .sql file to create the above table
  • rename the game_evals table to something else temporarily
  • rerun the pipeline going all the way back, for several players.... just to get the FENs.
  • write a .sql to get the positions and game evals by game_link and half_move
  • write a .sql to create position_evals(id, fen, evaluation, eval_depth)
  • copy these positions/evals to position_evals
  • modify the StockfishVisitor and EvalsVisitor visits so that they work in conjunction with PositionVisitor to write to position_evals
  • write a Task that gets the new positions, gets the positions in position_evals, and runs Stockfish over the new positions, then copies them over to position_evals
  • write a .sql file to create a view for game_evals (with win probability?)
  • edit the setup .sql to create the right tables
  • edit the DAG to require the right tasks

from chess-pipeline.

guidopetri avatar guidopetri commented on June 24, 2024

I believe this is done. What a confusing issue.

from chess-pipeline.

Related Issues (20)

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.