Update train_machine.py