Skip to content

DevComPsy/cpm-workshop-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WORKSHOP: theory-driven computational modeling in computational psychiatry with cpm

Preparations

Please make sure to have a completely set-up python environment. If you are new to python, we recommend you check out the Python documentation or Anaconda for a more comprehensive guide.

However, we recommend you simply use Google Colab, which is a free Jupyter notebook environment that runs in the cloud and requires no setup. You can access it here. The advantage of using Google Colab is that it comes with many pre-installed packages, and you can install cpm by simply including an extra line at the beginning of your notebook, see below.

Installing cpm

To install the cpm package, you can use the following command in your terminal:

pip install cpm-toolbox

Installing dependencies

There is no need to install any additional dependencies, as the required should be installed alongside cpm.

Installing cpm via Anaconda

If you prefer to use Anaconda, I recommend you create a new environment and install cpm there. You can do this with the following commands:

conda create -n cpm python=3.12.4
conda activate cpm
pip install cpm-toolbox

Installing cpm in JupyterLab or Google Colab

If you want to use cpm in JupyterLab or Google Colab, you can install it directly in the notebook by running the following command in a code cell:

!pip install git+https://github.com/DevComPsy/cpm.git

Running the workshop

To run the workshop, you can either clone the repository or download the files directly from GitHub. The exercises are designed to be run in a Jupyter notebook, but you can also run them in any Python environment that supports the cpm package. Uncompleted exercises are in the exercises folder, and completed exercises are in the solutions folder.

Jupyter Notebook Exercises

  • Exercise 1 - model building: Open In Colab
  • Exercise 2 - model fitting: Open In Colab
  • Exercise 3 - parameter recovery: Open In Colab

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •