title: Keras loss constant
body: <pre><code>def myloss(y_true, y_pred):
          b = k.constant([1, 1, 1, 50, 50, 50], shape=[6, 1])
          return (k.mean(k.sqrt(k.dot(k.square(y_pred - y_true), b)))
  </code></pre>
  
  <p>This is our loss function and we got this result.</p>
  
  <pre><code>2800/2799 [==============================] - 245s - loss: 204.2003 - soft_acc: 0.5136 - val_loss: 64.3844 - val_soft_acc: 0.4648
  </code></pre>
  
  <p>We tried changing the learning rates and optimiser but the loss didn't improve </p>
  
  <p>we refered to this link
  <a href="https://stackoverflow.com/questions/46014723/keras-extremely-high-loss">Keras Extremely High Loss</a></p>
  
  <pre><code>epoch 1/200 ===========================] - 254s - loss: 4.0631 - rmse: 5.1670 - val_loss: 4.6882 - val_rmse: 4.7807
  </code></pre>
  
  <p>and added logarithmic error and got the above loss value. How to reduce the loss further?</p>