A comprehensive implementation of multiple RL algorithms for solving the CartPole-v1 environment.
- Create virtual environment:
python -m venv venv
venv\Scripts\activate # Windows- Install dependencies:
pip install -r requirements.txt- Verify setup:
python verify_setup.pycartpole-rl/
├── agents/ # RL algorithm implementations
├── utils/ # Helper functions
├── models/ # Saved model weights
├── logs/ # Training logs and metrics
├── results/ # Plots and visualizations
├── configs/ # Configuration files
├── GUIDE.md # Step-by-step implementation guide
└── README.md # This file
Run the random agent baseline:
python agents/random_agent.py- Create virtual environment
- Install dependencies
- Verify Gymnasium installation
- Create project structure
- Implement random baseline
- Implement environment wrapper
- Create training loop framework
- Implement Q-Learning
- Implement DQN
- Implement Policy Gradient
- Implement Actor-Critic
- Implement PPO
Phase: 1 - Project Setup ✓
Next: Implement Random Agent baseline
See GUIDE.md for detailed implementation steps.