Path: blob/master/labml_nn/cfr/kuhn/experiment.ipynb
4980 views
Kernel: Python 3
Counterfactual Regret Minimization (CFR) on Kuhn Poker
This is an experiment learning to play Kuhn Poker with Counterfactual Regret Minimization CFR algorithm.
Install the labml-nn package
In [ ]:
Imports
In [ ]:
Create an experiment, we only write tracking information to sqlite to speed things up. Since the algorithm iterates fast and we track data on each iteration, writing to other destinations such as Tensorboard can be relatively time consuming. SQLite is enough for our analytics.
In [ ]:
Initialize configurations
In [ ]:
Set experiment configurations and assign a configurations dictionary to override configurations
In [ ]:
Start the experiment and run the training loop.
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: