Save name of loss function for D to save files