Skip to content

A example of Q-learning written in Python for a simplified Blackjack implementation.

License

Notifications You must be signed in to change notification settings

tnajun/blackjacklearner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blackjacklearner

A example of Q-learning and Q-learning using a neural network written in Python for a simplified Blackjack implementation.

This project provides a simple implementation of Blackjack for Q-learning. The Learner is trained via the standard algorithm, and once training has completed, will play the game to determine a win/loss ratio for the training session. There is also an option to use the DQNLearner which uses a variant of the Deep Q-Network from the paper "Playing Atari with Deep Reinforcement Learning" by Mnih et al.

The number of training and game rounds are parameters found in the main function. The results of the training are updated (printed to the screen) periodically, and the win/loss ratio is reported in the same manner. The optimal strategy is saved to a CSV after training is completed.


Dependencies

Has been tested using Keras 0.3.2 and 0.3.3 using Theano 0.8.2 on Python 3.4.

About

A example of Q-learning written in Python for a simplified Blackjack implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%