# Part 4 of "AI habitat classification with Python": shared .venv-habitat plus PyTorch (CPU) and LightGBM. # Tested on Python 3.12.0 (Windows 11) on 21 October 2026, CPU only (8 threads). Python 3.10+ is required. # Install the CPU build of PyTorch first (on Linux the default wheels bundle CUDA and weigh several GB): # pip install torch==2.14.1 --index-url https://download.pytorch.org/whl/cpu # then: pip install -r requirements.txt # The per-date sample table comes from the shared module: # python ..\ai-habitat-classification-common\prepare_data.py --timeseries # The wall-to-wall step writes a 5.6 GB memory-mapped stack to data\ (needs disk space, not RAM). -r ../ai-habitat-classification-common/requirements.txt torch==2.14.1 lightgbm==4.7.0