summaryrefslogtreecommitdiff
path: root/views/classification_validation.haml
blob: 4a2d6895a95763816e550e7fa8dd7b2df1cb81a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%dt Correct predictions:
%dd
  = sprintf("%.2f", model.correct_predictions)
  = '%'
%dt
  %a{:href => "http://en.wikipedia.org/wiki/Receiver_operating_characteristic", :target => "_blank"} Weighted area under ROC:
%dd 
  = sprintf("%.3f", model.weighted_area_under_roc)
%dt
  %a{:href => "http://en.wikipedia.org/wiki/Sensitivity_and_specificity", :target => "_blank"} Specificity:
%dd= sprintf("%.3f", model.specificity)
%dt
  %a{:href => "http://en.wikipedia.org/wiki/Sensitivity_and_specificity", :target => "_blank"} Sensitivity:
%dd= sprintf("%.3f", model.sensitivity)
%dt
  %a{:href => "http://en.wikipedia.org/wiki/Confusion_matrix", :target => "_blank"} Confusion Matrix:
%dd
  %table
    %tr
      %td{:colspan => 2, :rowspan => 2}
      %th{:colspan => 2} Measured
    %tr
      %th{:bgcolor => "#CCD2DC"} active
      %th{:bgcolor => "#CCD2DC"} inactive
    %tr
      %th{:rowspan => 2} Predicted
      %th{:bgcolor => "#CCD2DC"} active
      %td= model.true_positives
      %td= model.false_positives
    %tr
      %th{:bgcolor => "#CCD2DC"} inactive
      %td= model.false_negatives
      %td= model.true_negatives