diff options
Diffstat (limited to 'views/classification_validation.haml')
-rw-r--r-- | views/classification_validation.haml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/views/classification_validation.haml b/views/classification_validation.haml new file mode 100644 index 0000000..94ba8f9 --- /dev/null +++ b/views/classification_validation.haml @@ -0,0 +1,33 @@ +%dt Correct predictions: +%dd + = sprintf("%.2f", model.correct_predictions) if 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) if model.weighted_area_under_roc +%dt + %a{:href => "http://en.wikipedia.org/wiki/Sensitivity_and_specificity", :target => "_blank"} Specificity: +%dd= sprintf("%.3f", model.specificity) if model.specificity +%dt + %a{:href => "http://en.wikipedia.org/wiki/Sensitivity_and_specificity", :target => "_blank"} Sensitivity: +%dd= sprintf("%.3f", model.sensitivity) if 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 if model.true_positives + %td= model.false_positives if model.false_positives + %tr + %th{:bgcolor => "#CCD2DC"} inactive + %td= model.false_negatives if model.false_negatives + %td= model.true_negatives if model.true_negatives |