Download this notebook from SiddharthaPradhan/stanbkt
StanBKT: Post Install Setup#
[1]:
from stanbkt.utils import setup_cmdstanpy
import os
[2]:
cpu_count = os.cpu_count() or 1
print("This system has {} CPU cores.".format(cpu_count))
This system has 16 CPU cores.
The following code will download and install cmdstanpy from GitHub. Note: For Windows users this will also download and install RTools4.0 for the c++ compiler and make utility that is required by cmdstan.
[3]:
# Set up CmdStanPy with the appropriate number of cores for parallel processing
setup_cmdstanpy(n_cores=cpu_count)