title: Keras loss weights
body: <p>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.</p>
  
  <pre><code>model.compile(loss=[losses.mean_squared_error,losses.categorical_crossentropy], optimizer='sgd',loss_weights=[1,10])
  </code></pre>
  
  <p>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?</p>