[WIP] loss function name consistency

This is a checkpoint to solve #3481 
The `loss` parameter and `self.loss` must be equal in order for cloning to work. You should do this in the fit method.