Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/technote-space/genetic-algorithms-py
Genetic Algorithm
https://github.com/technote-space/genetic-algorithms-py
genetic-algorithm openai-gym
Last synced: 2 months ago
JSON representation
Genetic Algorithm
- Host: GitHub
- URL: https://github.com/technote-space/genetic-algorithms-py
- Owner: technote-space
- License: mit
- Created: 2020-07-24T16:11:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T21:35:39.000Z (about 2 years ago)
- Last Synced: 2024-10-05T13:41:21.372Z (3 months ago)
- Topics: genetic-algorithm, openai-gym
- Language: Python
- Homepage:
- Size: 16.6 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Genetic Algorithms
## Table of Contents
Details
- [Setup](#setup)
- [Run](#run)
- [Play](#play)
- [Task](#task)
- [Linter](#linter)
- [Docker](#docker)
- [Build Docker Image](#build-docker-image)
- [Run](#run-1)## Setup
```shell script
curl -L 'https://raw.githubusercontent.com/technote-space/python-setup/master/bin/setup.sh' | bash -s -- 3.7.7 ga
# source ~/.bash_profile
# source ~/.zshrc
pipenv install -d
```## Run
```shell script
python src/app.py [task]
```## Play
```shell script
python src/app.py -p [task]
```### Task
#### Santa Fe Trail
`santa-fe-trail`[Wikipedia](https://en.wikipedia.org/wiki/Santa_Fe_Trail_problem)
![Santa Fe Trail](https://raw.githubusercontent.com/technote-space/genetic-algorithms-py/images/santa-fe-trail.gif)
#### Cart Pole
`cart-pole`[Environment](https://github.com/openai/gym/wiki/CartPole-v0)
![Cart Pole](https://raw.githubusercontent.com/technote-space/genetic-algorithms-py/images/cart-pole.gif)
* [Generated Source Code](./samples/cart-pole)
* [Generated Algorithm](./samples/cart-pole/packages/algorithm.py)#### Mountain Car
`mountain-car`[Environment](https://github.com/openai/gym/wiki/MountainCar-v0)
![Mountain Car](https://raw.githubusercontent.com/technote-space/genetic-algorithms-py/images/mountain-car.gif)
* [Generated Source Code](./samples/mountain-car)
* [Generated Algorithm](./samples/mountain-car/packages/algorithm.py)## Linter
lint
```shell script
pipenv run lint
```format
```shell script
pipenv run format
```## Docker
### Build Docker Image
```shell script
docker build -t ga:latest .
```### Run
```shell script
docker run ga:latest [task]
```