title: How to find symmetric mean absolute error in python?
body: <p>How can I calculate symmetric mean absolute error in python using numpy or pandas? Is there are metric present in scikit sklearn ?</p>
  
  <p>Example data:</p>
  
  <pre><code>Actual value:   2,3,4,5,6,7,8,9
  Forecast value: 1,3,5,4,6,7,10,7
  </code></pre>
  
  <p>Formula for SMAPE see screenshot below:</p>
  
  <p><a href="https://i.stack.imgur.com/YIy33.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YIy33.png" alt="enter image description here"></a></p>
  
  <p>How can I do it in python using pandas or numpy and calculate SMAPE.</p>
  
  <p>Note: More info about SMAPE: <a href="https://en.wikipedia.org/wiki/Symmetric_mean_absolute_percentage_error" rel="noreferrer">https://en.wikipedia.org/wiki/Symmetric_mean_absolute_percentage_error</a></p>