This project was created for Artificial Intelligence course. The purpouse of this project was to implement machine learning algorithms, so that the agent moves on its own and makes decisions on its own.
Applied algorithms:
- Genetic algorithm - to find optimal path
- Decision tree - to check if cleaner is able to clean dirt
- Neural network - to recognize dirt by image
Used libraries:
- pygame 1.9.2
- numpy 1.11.0
- pybrain 0.3
- cv2 1.0
Project was developed using Python 2.7.11
- To start this project, first create virtualenv using python2. You need to have virtualenv module installed. Example command:
python2 -m virtualenv venv
- To activate your local environment use this command:
source venv/bin/activate
After this "(venv)" should appear on the left of the prompt.
- Now you can install all the requiremenets for the project. This should work:
pip install -r requirements.txt
To run the project do as follows:
- Activate your local environment (if it is not activated already):
source venv/bin/activate
- Simply run the main file from "src" directory:
python main.py