title: Own Loss Function in KERAS
body: <ol>
  <li><p>How can I define my own loss function which required Weight and Bias parameters from previous layers in Keras? </p></li>
  <li><p>How can I get [W1, b1, W2, b2, Wout, bout] from every layer? Here, we need to pass few more variable than usual (y_true, y_pred). I have attached two images for your reference. </p></li>
  </ol>
  
  <p>I need to implement this loss function. <a href="https://i.stack.imgur.com/v2N2x.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p><a href="https://i.stack.imgur.com/vYfNR.png" rel="nofollow noreferrer">enter image description here</a></p>