Code Monkey home page Code Monkey logo

mimicproject's Introduction

MimicProject

Using Machine Learning to automatically generate Agents that mimic hard-coded python bots

In order to use the system -Make sure you have PyBrain installed for Python 3. Also requires SciPy and NumPy -Have an Xpilot Python Bot ready to Mimic (Or use the one included, smarto.py) From Here You Have Two Options 1 - Iterative Learning (Generally works better) This system creates a poor mimic and then iteratively runs and retrains based on comparisons with the original bots actions

  Syntax is ./iterativeLearning.sh [somePythonBot.py] [Epochs Per Iterations (an int)] [Number of Iterations (int)]

2 - Regular Training (Lots of options but generally not as effective)

  For this I really suggest looking at the .sh file itself because there are many options but in general
  ./autoSystem.sh [somePythonBot.py] [Epochs to train for] [extra options]
  extra options that can be useful include:
    -nd (new data, deletes the old data)
    -od (Old Data, doesn't generate any new data)
    -bd (Big Data, generates a large dataset for training)
    -ff (Trains Feed Forward Networks Instead of LSTM)
    -nt (No Training, Generates Data but doesn't train anything)
    -nw (No wait, the script will not wait for the user to finish)
    -c (continue, the script will load previously trained models and train them further rather than creating new ones)

In order to select different inputs for the machine learning models alter the config.txt in the magicstuff folder. You'll notice there are different methods for adding information to seperate networks (Steering, Thrusting, Shooting) and a single method to add a variable to all of these. Inputs should be in the form of a float, and ideally they should be normalized for the range (-1, 1) but it is not entirely necessary to do so.

The Mimic that is output will also generate training data on itself based on what the original bot would do in the situations it steers itself into

mimicproject's People

Contributors

jamesdconley avatar

Watchers

James Cloos avatar  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.