Code Monkey home page Code Monkey logo

randomforests-pacman's Introduction

Random Forests Pac-Man

Design and Implementation of Pac-Man Strategies with random forests algorithm from scratch in a deterministic, fully observable Pacman Environment. Although not a very effective algorithm for game agent decision making, this project renders the opportunity to understanding of the basics of decision trees, their statistical aspects of decision making, and ensemble learning that creates the Random Forest algorithm.

Design and Execution

The entire decision-tree and random forests algorithm is coded from scratch, without any dependency on Scikit-Learn libraries, and hence provides users with the fundamental basics of how a decision tree algorithm truly functions. The decision-tree algorithm is trained with good-moves.txt which includes some data collected from codes that played Pacman, and some codes that actually won games of Pacman. Each line in good-moves.txt contains a feature vector, and a final digit - which encodes the action that Pacman should take. This final digit in the feature vector in good-moves.txt is what the classifier is trying to learn to classify.

How to run

This version of Pac-Man requires the Python 2.7 environment. Run the following command to play the game:

      python pacman.py --pacman ClassifierAgent --layout mediumClassic --n 20

randomforests-pacman's People

Contributors

providence-nate avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.