Code Monkey home page Code Monkey logo

primer's Introduction

Overview

Primer is a WIP Binpack to Bulletformat parser based on the Stockfish parsing code.

Filtering options

Primer can filter your data for you as it parses the binpack. Currently it filters positions where the best move is a capture and positions where stm is in check by default. It also offers several optional filtering options:

  • --no-filter-captures

Disables the default filtering of positions where the best move is a capture.

  • --no-filter-in-check

Disables the default filtering of positions where stm is in check.

  • --max-score max_score

Filters all positions with a abs(score) > max_score.

  • --min-ply minimum_ply_count

Filters all the positions with a ply count < minimum_ply_count

  • --filter-win win_filter_score

Filters positions in a won game (from stm pov) with a score < win_filter_score.

  • --filter-loss loss_filter_score

Filters positions in a lost game (from stm pov) with a score > loss_filter_score.

  • --limit-positions max_pos_count

Stops after having parsed max_pos_count positions, filtered positions don't count towards the total.

How to convert a file.

Here's an example of a basic Primer command
./primer convert binpackname.binpack desiredbinname.bin --max-score 10000

primer's People

Contributors

mcostalba avatar sopel97 avatar vondele avatar zamar avatar nodchip avatar snicolet avatar vizvezdenec avatar voyagerone avatar lucasart avatar locutus2 avatar joergoster avatar rocky640 avatar glinscott avatar bm123499 avatar pgg106 avatar sfisgod avatar noobpwnftw avatar stefano80 avatar r-peleg avatar unaiic avatar fauziakram avatar syzygy1 avatar 31m059 avatar pb00068 avatar ceebo avatar mjz1977 avatar tttak avatar firefather avatar miguel-l avatar nightlyking avatar

Stargazers

Krasimir Topchiyski avatar Joseph Pasfield avatar  avatar Alessia Ture avatar  avatar Li Ying avatar Jamie Whiting avatar  avatar

Watchers

 avatar

Forkers

liamt19

primer's Issues

Delete temp files after copying them

Hi,

this is just a proposal to delete each temp file immediately after copying it into the target output file.
In this way half of the disk space will be necessary.

I faced this issue, because my disk is not big enough for the data I am processing.
As a solution for me I concatenate the files into the tmp directory manually after deleting the input file.
I think this could be a nice improvement.

Best regards,
Krasimir

Compiled binaries request

Hi and thanks for the nice project!
Is there somewhere the compiled binary version of the tool, because I have hard times compiling it?
I will highly appreciate if you upload an exe in the releases section.
Best regards,
Krasimir

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.