Update train.php