Skip to Content
Machine Learning Solutions
book

Machine Learning Solutions

by Jalaj Thanaki
April 2018
Beginner to intermediate content levelBeginner to intermediate
566 pages
12h 17m
English
Packt Publishing
Content preview from Machine Learning Solutions

Just for fun - implementing the Flappy Bird gaming bot

In this section, we will be building the Flappy Bird gaming bot. This gaming bot has been built using DQN. You can find the entire code at this GitHub link: https://github.com/jalajthanaki/DQN_FlappyBird.

This bot has a pre-trained model, so you test it using the pre-trained model. In order to run this bot, you need to execute this command:

$ python deep_q_network.py

You can see the output in the following screenshot:

Just for fun - implementing the Flappy Bird gaming bot

Figure 11.33: Output of the Flappy Bird gaming bot

You can see the combination of all the concepts that we have studied so far in this implementation, so make sure you explore this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Machine Learning

Machine Learning

Subramanian Chandramouli, Saikat Dutt, Amit Kumar Das
Machine Learning for Business

Machine Learning for Business

Doug Hudgeon, Richard Nichol
Introducing Machine Learning

Introducing Machine Learning

Dino Esposito, Francesco Esposito

Publisher Resources

ISBN: 9781788390040Supplemental Content