Comments (3)
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.
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
andhalf_move
- write a .sql to create
position_evals(id, fen, evaluation, eval_depth)
- copy these positions/evals to
position_evals
- modify the
StockfishVisitor
andEvalsVisitor
visits so that they work in conjunction withPositionVisitor
to write toposition_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 toposition_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.
I believe this is done. What a confusing issue.
from chess-pipeline.
Related Issues (20)
- Check if Maia is useful
- Add parameters for newsletter
- Rewrite SQL queries to use cursors in pandas HOT 1
- Change visitors to use attributes under `game.headers`
- Move stockfish analysis to its own Task
- Some table SQLs don't match actual tables HOT 2
- Set up testing on push / pull requests
- Fix visitor in header issues
- Remove duplicate FENs from `position_evals`
- `EloByWeekday` fails when no games HOT 3
- Add perftype to filenames to prevent unfulfilled dependency errors HOT 5
- Organize analysis code HOT 6
- Deploy win probability model HOT 5
- Set up staging environment
- WinRatioByColor fails when only one color played HOT 2
- Fix off-by-one data HOT 1
- Clean up GetEvals `explode()` calls
- Examine relative piece worth
- Fix EloByWeekday relying on other categories of games
- Minimize `GetEvals` footprint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chess-pipeline.