Format docstrings in train.py