title: Print dictionary containing accuracy, precision, recall and F1-score for each query
body: <p>I have a sample dataset as following. all the features are categorical, and the label is binary of 0 and 1.</p>
  <p>I applied decision trees for a classification problem. the question is how to print Dictionary named <code>query_results</code> containing accuracy, precision, recall and F1-score for each query in the evaluation set as <code>{'query1':{'accuracy':value,'precision':value,...},'query2':{...}}</code></p>
  <p>Expected Result:</p>
  <pre><code>{'query1':{'accuracy':value,'precision':value,...},'query2':{...}}
  
  {&quot;t-shirt&quot;: 'accuracy': 90% ,'precision':91%, &quot;recall&quot; : 90%, &quot;F1_score&quot; :90%  
  shoes : 'accuracy': 90% ,'precision':91%, &quot;recall&quot; : 90%, &quot;F1_score&quot; :90%  
  skirt : 'accuracy': 80% ,'precision':91%, &quot;recall&quot; : 90%, &quot;F1_score&quot; :90%
  ..  }
  </code></pre>
  <pre><code>    query   price       product silhouette          brand   color   upper_material  pattern label
  1   t-shirt low.        shoe    backless_slipper    Guess   schwarz   Kunststoff    unifarben   1
  2   t-shirt low         shoe    backless_slipper    Tommy   red       Textil        gestreift   1
  </code></pre>
  <pre><code>
  
  
  
  
  
  
  </code></pre>