title: How to create confusion matrix in Java
body: <p>I would need to create confusion matrix in java. Data is available in flats text files. I do have two text files. one file have actual data look like this </p>
  
  <pre><code>&lt;PersonName&gt;Amit&lt;/PersonName&gt; &lt;Address&gt;XYZ&lt;/Address&gt;
  &lt;PersonName&gt;Sam&lt;/PersonName&gt; &lt;Address&gt;St 123 UK &lt;/Address
  </code></pre>
  
  <p>in second file have predicted data look like this.</p>
  
  <pre><code>Amit: PersonName
  Sam St: Address
  </code></pre>
  
  <p>Does anyone have any idea how to created the confusion matrix and calculate all false positive, false negative, true negative and true positive which is required to do that.</p>