In this repo, Q learning examples are demonstrated, and economics concepts are explored.
git clone https://github.com/alicekwn/q-learning
cd q-learning
chmod +x setup_repo.sh
./setup_repo.sh
. venv/bin/activate
or follow the step-by-step instructions below between the two horizontal rules:
- MacOS / Linux
python3 -m venv venv- Windows
python -m venv venv- MacOS / Linux
. venv/bin/activate- Windows (in Command Prompt, NOT Powershell)
venv\Scripts\activate.batpip install toml
pip install -e ".[dev]"The app is deployed at https://qlearning-demo.streamlit.app/.
To edit the app, run the interactive Q-learning demo locally:
streamlit run streamlit_app/Welcome.pyThe app will open in your browser at http://localhost:8501.
Research notebooks are in notebooks/:
1d_grid_example.ipynb- a dog moving in a 1D grid example2d_grid_example.ipynb- a dog moving in a 2D grid exampleecon_game.ipynb- Economic game theory applications