poker_ai icon indicating copy to clipboard operation
poker_ai copied to clipboard

Missing strategy offline_strategy_dict = joblib.load(strategy_path)

Open amirfarazmand opened this issue 2 years ago • 1 comments

Is there any help to create a strategy file? File "C:\Users\Amir\PycharmProjects\poker_ai\poker_ai\terminal\runner.py", line 65, in run_terminal_app offline_strategy_dict = joblib.load(strategy_path) File "C:\Users\Amir\PycharmProjects\poker_ai\venv\lib\site-packages\joblib\numpy_pickle.py", line 577, in load with open(filename, 'rb') as f: FileNotFoundError: [Errno 2] No such file or directory: ''

amirfarazmand avatar Jul 23 '21 14:07 amirfarazmand

@amirfarazmand

The strategy file is obtained in the following way:

You must first run the 'poker_ai cluster' and 'poker_ai train start' commands.

These commands will give you the files 'agent.joblib', 'server.gz', 'card_info_lut.joblib', 'centroid.joblib', 'config.yaml' and 'server.gz'. These files are needed to run 'poker_ai play'.

Once you have these files, create a folder in the 'research' folder and call it 'blueprint_algo'. Store those files there.

Then run this command:

poker_ai play --lut_path /home/jupyter/poker_ai/research/blueprint_algo --pickle_dir False --agent /home/jupyter/poker_ai/research/blueprint_algo/_2022_10_19_20_44_25_523196/agent.joblib --strategy_path /home/jupyter/poker_ai/research/blueprint_algo/_2022_10_19_20_44_25_523196/server.gz --debug_quick_start

The file you refer to as the 'strategy file' is 'server.gz', and it is used in this line specifically: --strategy_path /home/jupyter/poker_ai/research/blueprint_algo/_2022_10_19_20_44_25_523196/server.gz shown above

jaimeggb avatar Nov 04 '22 11:11 jaimeggb