During this lab, you should get a bit deeper understanding of the factorgraph concepts presented during the lectures.
If you have any working Pytorch and matplotlib installation on your PC, then you're ready for the lab.
If you don't, follow this tutorial (for Ubuntu Linux):
sudo apt update && sudo apt install python3-venv python3 -m venv --system-site-packages ~/pytorch_venv # or any other folder in your home source ~/pytorch_venv/bin/activate pip install torch matplotlib # This downloads about 900 MB of data and takes 7 GB on disk
python3 -m virtualenv --system-site-packages ~/pytorch_venv # or any other folder in your home source ~/pytorch_venv/bin/activate pip install torch # This downloads about 900 MB of data and takes 7 GB on disk
# pip install torch matplotlib # instead of this, do the following two commands pip install matplotlib pip install torch --index-url https://download.pytorch.org/whl/cpu
When you leave this console or reboot your computer, you get the virtualenv back by calling source ~/pytorch_venv/bin/activate.