title: calculating the macro/micro average
body: <p>my data is spam/ham data ... and I am trying to calculate the Micro/Macro average using the builtin functions but I am getting the same number exactly. they both gave me: 0.6666666667 ... 
  can this be true ? and even if change the data they gave me different number than the one above but with Macreo=Micro !
  my calculation is like this: </p>
  
  <pre><code>cm= metrics.confusion_matrix(y_test,y_pred)
  #calculating the FP,FN
  TP=cm[1,1]
  TN=cm[0,0]
  FP=cm[0,1]
  FN=cm[1,0]
  print cm
  
  #calculating the false positive rate
  print "calculating the false positive rate"
  print FP,TN,FP
  print FP/float(TN+FP)
  print "calculating the macro-averaged"
  print metrics.average_precision_score(y_test, y_pred, average='macro', sample_weight=None)
  print "calculating the macro-averaged"
  print metrics.average_precision_score(y_test, y_pred, average='micro', sample_weight=None)
  </code></pre>