title: Keras custom loss function with arccos
body: <p>I am trying to build a custom loss function in Keras with <strong>acos</strong> insinde. the function is used to compare the similarity of two quaternions. 
  is there a way to implement it using Keras backend? if not what is the alternative?</p>