         strong domain[1]
         normal fn
         yellow tp
-        normal format4f tpr
-        normal tp + ' / ' + (tp + fn)
+        normal format4f fnr
+        normal fn + ' / ' + (tp + fn)
       ]
       tr [
         strong 'Total'
         strong tn + fn
         strong tp + fp
-        strong format4f tpr + fpr
-        strong (tp + fp) + ' / ' + (fp + tn + tp + fn)
+        strong format4f (fn + fp) / (fp + tn + tp + fn)
+        strong (fn + fp) + ' / ' + (fp + tn + tp + fn)
       ]
     ]
   ]


formatConfusionMatrix = (cm) ->
  [[tn, fp], [fn, tp]] = cm.matrix
  tpr = tp / (tp + fn)
  fpr = fp / (fp + tn)
  domain = cm.domain


  table [ 
    tbody [
      tr [
        strong 'Actual/Predicted'
        strong domain[0]
        strong domain[1]
        strong 'Error'
