bupticybee / TexasSolver

🚀 A very efficient Texas Holdem GTO solver :spades::hearts::clubs::diamonds:
https://bupticybee.github.io/texassolver_page
GNU Affero General Public License v3.0
1.8k stars 312 forks source link

Saving evs in output file #202

Closed jakobGTO closed 1 month ago

jakobGTO commented 2 months ago

Hello

When saving a solution to json only the strategy seems to be saved, not the evs, equity etc. Is it possible to save these to json aswell?

Takumi-trbl commented 2 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

bupticybee commented 2 months ago

Hello

When saving a solution to json only the strategy seems to be saved, not the evs, equity etc. Is it possible to save these to json aswell?

Yeah that's possible,need a slight modification in code though.

jakobGTO commented 2 months ago

Hello When saving a solution to json only the strategy seems to be saved, not the evs, equity etc. Is it possible to save these to json aswell?

Yeah that's possible,need a slight modification in code though.

Ok thank you. Im new to this project could you point me to where i have to make this modification?

Edit: When i look through the master branch there seems to be some functions to dump ev etc, but i cannot find these in the console version. Am i able to compile a new console version from the master branch or is that only for the gui version?

jakobGTO commented 1 month ago

solved by adding (*retval)["evs"] = trainable->dump_evs(); to the PCfrSolver::reConvertJson method