{"push_id":628958859,"size":2,"distinct_size":1,"ref":"refs/heads/fancy_example","head":"b3623d7735564ef293f6841cdd0ce1ecd8772e94","before":"c9726e38a863871d637b07e1df69db634183ab48","commits":[{"sha":"665334dc3fe24369d67f5929a1f89384c31bfaa8","author":{"email":"e7366a8c07bfdf2f7115ad219848d448a055b931@gmail.com","name":"Marco Costalba"},"message":"Fancy template of a tuning setup\n\nFancy version of a reference tuning template.\n\nThis is a reference template for setting up a tuning\nsession with SPSA.\n\nUsually the task is not so difficult, but it could be a\nbit tricky, especially for newbies. So I suggest to fetch\nthis commit on top of the branch you want to tune (usually\nyour local master) and add the variables to tune, for\ninstance if you have:\n\nint myKing = 10, myQueen = 20;\nScore myBonus = S(5, 15);\nValue myValue[][2] = { { V(100), V(20) }, { V(7), V(78) } };\n\nand at the end of the update you may want to call\na post update function:\n\nvoid my_function();\n\nIf instead of default Option's min-max values,\nyou prefer your custom ones, returned by:\n\nstd::pair<int, int> my_range(int value)\n\nYou can simply add below:\n\nTUNE(my_range, myKing, myQueen, myBonus, myValue, my_function);\n\nAnd all the magic happens :-)\n\nAt startup all the parameters are printed in a\nformat suitable to be copy-pasted in fishtest.\n\nAlthough the code is a lot, it is written to be\nminimally invasive, mainly it is only added and\nalmost no change is required in the exsisting\ncode.\n\nWARNING: Currently it works only for variables and\narrays of type int, Value and Score.\n\nNo functional change.","distinct":false,"url":"https://api.github.com/repos/mcostalba/Stockfish/commits/665334dc3fe24369d67f5929a1f89384c31bfaa8"},{"sha":"b3623d7735564ef293f6841cdd0ce1ecd8772e94","author":{"email":"e7366a8c07bfdf2f7115ad219848d448a055b931@gmail.com","name":"Marco Costalba"},"message":"Examples on how to use fancy tuning template\n\n...and at the end, the formatted parameters are\nprinted at startup.\n\nNo functional change.","distinct":true,"url":"https://api.github.com/repos/mcostalba/Stockfish/commits/b3623d7735564ef293f6841cdd0ce1ecd8772e94"}]}