Skip to content

0x6Star3s/Genetic-Algorithm

Repository files navigation

Maze AI Experiments

Projekt zawiera kilka podejsc do nauki rozwiazywania labiryntow:

  • PPO + ICM (RL + curiosity)
  • Go-Explore (eksploracja z archiwum stanow)
  • Genetic Algorithm (ewolucja sekwencji ruchow)
  • Evolution Strategies (ewolucja wag sieci)

Instalacja

Backend (Python)

cd backend
python -m pip install -r requirements.txt

Frontend (Next.js)

cd frontend
npm install

Uruchomienie

Backend

Pojedynczy algorytm:

cd backend
python main.py --algo ppo --maze medium
python main.py --algo go_explore --maze hard
python main.py --algo ga --maze medium
python main.py --algo es --maze medium

Porownanie wszystkich:

python main.py --algo all --maze medium

Wizualizacja trasy:

python main.py --algo ppo --maze medium --visualize

Frontend

cd frontend
npm run dev

Struktura

backend/
  main.py           - runner i porownanie wynikow
  maze_env.py       - srodowisko labiryntu (Gymnasium API)
  networks.py       - sieci neuronowe
  visualizer.py     - animacja pygame
  agents/
    ppo.py          - PPO + ICM
    go_explore.py   - Go-Explore
    ga.py           - Genetic Algorithm
    es.py           - Evolution Strategies
frontend/
  src/
    app/            - strony Next.js
    lib/            - logika algorytmu genetycznego (TS)

About

cells with physics and Genetic-Algorithm implemented in JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors