Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Missing strategy offline_strategy_dict = joblib.load(strategy_path) #138

Open
amirfarazmand opened this issue Jul 23, 2021 · 1 comment
Open

Comments

@amirfarazmand
Copy link

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: ''

@jaimeggb
Copy link

jaimeggb commented Nov 4, 2022

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@amirfarazmand @jaimeggb and others