Installing Theano and CSF or PBN Toolkits on Windows. ------------------------------------------------------ 1. Install Miniconda-3 from: http://repo.anaconda.com/miniconda If you have an older version of Windows, you might need an older version of Miniconda3. For Windows 7, I had to go back to version 4.1.2 2. After installing Miniconda3, run the Miniconda-3 Prompt by navigating from the system start menu: System Start Menu -> All Programs -> Anaconda3 -> Anaconda Prompt (Miniconda3) 3. In the Miniconda command window, type: > conda install theano > conda install matplotlib > conda install future > python -m pip install sklearn > python -m pip install playsound For some reason, installing Theano there is a file missing: "scan_perform.c" I have included this file in the distribution. Go to directory scan_module/ the theano installation directory. For me it was C:/Users/PaulB/Miniconda3/Lib/site-packages/theano/scan_module/ Add a sub-directory called 'c_code' and copy the file scan_perform.c into it. In other words: C:/Users/PaulB/Miniconda3/Lib/site-packages/theano/scan_module/c_code/scan_perform.c 4. In the Miniconda3 command window, run: > set THEANO_FLAGS=mode=FAST_RUN,device=cpu,floatX=float64 You can also specify 'float32' which runs faster. This envoronment variable can also be set permanently using system settings. To run the toolkit: > python cdbn_gui.py It may take a long time to compile functions the first time (took 20 minutes for me). I may have missed some Python packages. If an error message appears about a missing Python package, try the 'conda' or 'pip' installation as shown above. Using with AESARA Aesara is recommended if you do not have a GPU. To install Aesara, 1. In the Miniconda command window, type: > python -m pip install aesara > set PBNTK_BACKEND=AESARA > set AESARA_FLAGS=mode=FAST_RUN,device=cpu,floatX=float64 (or float32) > python cdbn_gui.py Windows version compiles very slowly. This is apparently due to the large amount of functions coded in C. The c-coded functions run very fast, but compile slow in Windows. In the CSF Toolkit, you can prevent unnecessary delays if you assign different models to different model numbers (in MODEL drop-down menu) so that you can later re-use a compiled model.