In this file you get a step-by-step instruction on how to install everything you need for the course Optimizing Experimental Design from scratch.
If you have something already installed you can skip the respective step.
Download and install Python:
- Visit the official Python website to download the latest version of Python.
- During installation, make sure to check the option that adds Python to your system's PATH.
Download and install Git:
- Visit the official Git website to download the latest version of Git.
- Follow the installation instructions for your operating system.
- Open a terminal or command prompt.
- Go to the directory where you want to store everything regarding the course:
cd <directory_name>
- Clone the Git repository:
git clone https://github.com/whyhardt/CourseOptimizingExperimentalDesign.git
- Change into the cloned repository:
cd CourseOptimizingExperimentalDesign
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment: --> On Windows:
.\venv\Scripts\activate
--> On Unix or MacOS:
source venv/bin/activate
- Install
ipykernel
and other dependencies from therequirements.txt
file:
pip install ipykernel
pip install -r requirements.txt
We also need Pytorch for a neural network regressor which we will use in the course. Since Pytorch is a huge package and we do not need necessarily GPU support due to the simplicity of the neural network model, we will install only its CPU-Version which safes a lot disk space:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
Now you can either use your own IDE (needs to support jupyter notebooks) or follow the next steps to run jupyter notebooks in your browser. Alternatively you can use online services like Kaggle or Google Colab.
- Install the Jupyter kernel for your virtual environment:
python -m ipykernel install --user --name=oed
- Start Jupyter Notebook:
jupyter notebook
- In the Jupyter Notebook interface, create a new notebook or open one of the available ones from
tutorials
and select your newly created kerneloed
from the Kernel menu.
- Open a terminal or command prompt.
- Change into the directory where they cloned the Git repository:
cd <repository_directory>
Replace <repository_directory>
with the name of the directory created when they cloned the repository.
--> On Windows:
.\venv\Scripts\activate
--> On Unix or MacOS:
source venv/bin/activate
- Start Jupyter Notebook:
jupyter notebook
- select your kernel
oed
from the Kernel menu.