Add possibility, to change loss weights during the training
Currentlym it is not possible to change the loss weights during the training. The reason is, that the loaded model needs to be compiled again, if the weights change, and that is not happening.
Need to fix this.