# Model's loss weights

I've model with two output layers, age and gender prediction layers. I want to assign different weight values for each output layer's loss. I've the following line of code to do so.

model.compile(loss=[losses.mean_squared_error,losses.categorical_crossentropy], optimizer='sgd',loss_weights=[1,10])


My question is what is the effect of loss weights on performance of a model? How can I configure the loss weights so that the model can perform better on age prediction?