Create loss.txt