Predictive Analytics Lab
University of Sussex
Approach
Python tools
ML tools
Further recommendations
setup.py
pyproject.toml
replaces setup.py
and also auxiliary .cfg
files such as black.cfg
and .isort.cfg
Install poetry from the website or homebrew
poetry install
– install dependencies
poetry update
– check for dependency updates that won’t break your code
poetry add <package>
– installs and adds a new dependency (no need to manually code dependencies as required for requirements.txt/setup.py)
Analogy (for rustaceans): cargo for python
Lightning is made up of 3 key components: a DataModule, LightningModule, and a Trainer
nn.Module
but you also define the training, val and test steps