Code


The following Python notebooks accompany the textbook Computational Foundations of Cognitive Neuroscience.

  • Efficient coding (Chapter 3)
  • Costly inference (Chapter 4)
  • Neural Gibbs sampling (Chapter 5)
  • Attentional cueing (Chapter 6)