rahulvenugopal / BAMB2024

tutorials for 2024 course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BAMB2024

Tutorials for each day of BAMB! 2024. Each folder contains two tutorial versions:

  • basic tutorial file, not or only partially filled (eg. modeling_101.ipynb)
  • tutorial with solutions (modeling_101_solutions.ipynb)

Day 1 - General Introduction to Behavioral Modelling

Day 2: Reinforcement Learning

Day 3: Bayesian decision-making and model-fitting

  • Tutorials
    • Part 1: Introduction and Bayesian Brain

      • Instructions: Open in Collab
      • Solutions: Open in Collab
      • Slides
    • Part 2: Complex behavior and connections

      • Instructions: Open in Collab
      • Solutions: Open in Collab
      • Slides
    • Part 3: Simulation-based inference: Tutorial Open in Collab

Day 4: Latent variable models and expectation maximization (EM)

Day 5: Drift-diffusion model (DDM)

  • Tutorials
    • Parts 1-4: Simulating and fitting the DDM
      • Instructions: Open in Collab
      • Solutions: Open in Collab
      • Slides

Day 6: Neural Networks

Part I: Feedforward models

In the first part of the tutorial, we will learn how to use Perceptron and Multi-Layer Perceptron (MLP) neural networks to solve simple classification tasks. We will walk through the necessary steps to implement and train these networks using PyTorch. Here is the index:

  • Imports.
  • Models:
    • Perceptron.
    • Multi-layer perceptron.
  • Generate data.
  • Training and evaluating.
  • Playing

Part II: Recurrent Neural Networks

In the second part of the tutorial we will learn how to use recurrent neural networks (RNNs) to solve a Perceptual Decision Making task. Here is the index:

  • Installs, packages, auxiliary functions.
  • Preparing for the training:
    • Training parameters.
    • Define the task (sample dataset).
    • Define the network.
    • Define the algorithm to train the network.
    • Save config.
    • Supervised training of the RNN.
    • Run the trained network (and save the behavioral data).
  • Network analysis:
    • Behavioral analysis.
    • General neural analysis.
    • Stimulus and choice decoding from network activity.

Relevant links:

Author (tutorials): Manuel Molano

About

tutorials for 2024 course


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%