title: access to numbers in classification_report - sklearn
body: <p>This is a simple example of <code>classification_report</code> in <code>sklearn</code></p>
  
  <pre><code>from sklearn.metrics import classification_report
  y_true = [0, 1, 2, 2, 2]
  y_pred = [0, 0, 2, 2, 1]
  target_names = ['class 0', 'class 1', 'class 2']
  print(classification_report(y_true, y_pred, target_names=target_names))
  #             precision    recall  f1-score   support
  #
  #    class 0       0.50      1.00      0.67         1
  #    class 1       0.00      0.00      0.00         1
  #    class 2       1.00      0.67      0.80         3
  #
  #avg / total       0.70      0.60      0.61         5
  </code></pre>
  
  <p>I want to have access to avg/total row. For instance, I want to extract f1-score from the report, which is 0.61.</p>
  
  <p>How can I have access to the number in <code>classification_report</code>?</p>