Notebooks and code for contextual bandit simulation and RPE decoding with LaseNet.
- Clone the repo (without the large
.venvif you added it to.gitignore). - Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Start Jupyter and open the notebooks:
jupyter notebook
decoding-example.ipynb– Decoding reward prediction errors with LaseNet.simulate-contextual-bandit.ipynb– Contextual bandit simulation and attention exercises.simulate-contextual-bandit-solutions.ipynb– Solutions for the bandit notebook.libraries/–World,FeatureRL,Data,plottingfor simulations.