This repository contains implementations of key reinforcement learning and neural modeling paradigms for the Neural Modelling Winter 2024 Course. The project explores classical and modern computational neuroscience techniques, including Rescorla-Wagner models, temporal difference learning, and successor representation-based actor-critic frameworks. Each module demonstrates foundational principles in learning and decision-making.
02_prediction_learning
: Classical conditioning paradigms using the Rescorla-Wagner model, including Blocking, Overshadowing, and Secondary Conditioning. Plots are included in thegraphs/
folder.03_td_and_successor_learning
: Implementation of temporal difference learning and successor representation to model prediction and decision processes.04_model_fitting_and_pavlovian_biases
: Analysis of Pavlovian-instrumental interactions and model fitting with experimental data.05_learning_how_to_act
: Actor-critic models with static and dynamic successor representations, exploring policy learning in a maze environment.helper/
: Utility functions, including Rescorla-Wagner model computations.
- Python 3.10+
- Libraries:
numpy
,matplotlib
-
Clone the repository:
git clone https://github.com/aeldably/neural_modelling_24.git cd neural_modelling
-
Install the required dependencies:
pip install -r requirements.txt
- Navigate to the relevant directory (e.g., 02_prediction_learning).
- Execute scripts to generate plots and simulate paradigms:
python blocking.py
For Jupyter notebooks (e.g., learning_how_to_act_nb.ipynb), open and run them cell by cell.
- Rescorla-Wagner Model: Demonstrates classical conditioning paradigms like Blocking and Secondary Conditioning.
- Temporal Difference Learning: Simulates dynamic value estimation for reward prediction.
- Successor Representation: Enhances reinforcement learning speed and adaptability with SR-based value functions.
- Actor-Critic Frameworks: Explores policy learning in complex environments.
- Rescorla, R.A. (1972). A theory of Pavlovian conditioning: Variations in the effectiveness of reinforcement and non-reinforcement.
- Dayan, P., & Abbott, L. F. (2005). Theoretical neuroscience: computational and mathematical modeling of neural systems.
- Sutton, R. S., & Barto, A. G. (2018). Reinforcement learning: An introduction.