Skip to content

Instantly share code, notes, and snippets.

@psychelzh
Last active October 5, 2022 01:57
Show Gist options
  • Save psychelzh/49022e0af4870306649f2183b6c130c5 to your computer and use it in GitHub Desktop.
Save psychelzh/49022e0af4870306649f2183b6c130c5 to your computer and use it in GitHub Desktop.
Setup HDDM on Windows

Install HDDM

HDDM is a python project aiming at fitting hierarchical drift diffusion model. But it is complex to install it on Windows. Here I record what I tried.

Prerequisite

Steps

The steps is generally the very similar to those on README of HDDM.

pip install cython
pip install pymc==2.3.8
pip install git+https://github.com/hddm-devs/kabuki
pip install git+https://github.com/hddm-devs/hddm
# Optional
pip install torch torchvision torchaudio

What I really do is:

  1. Create a new environment by conda create -n ddm python=3.8. Note we have to use python 3.8 because pymc 2.3.8 does not support python 3.9 or higher, but HDDM uses pymc 2.3.8.
  2. Activate ddm environment and execute these lines:
conda install cython
conda install pymc==2.3.8 # pymc install from conda will work
pip install git+ssh://[email protected]/hddm-devs/kabuki # use ssh protocol to bypass GFW
pip install git+ssh://[email protected]/hddm-devs/hddm

It is done then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment