summaryrefslogtreecommitdiff
path: root/views/classification_validation.haml
blob: 41362ba486bf0e3ab133e06f7111de5d0deb0c45 (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.to_f) 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.to_f) 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.to_f) if model.specificity
%dt
	%a{:href => "http://en.wikipedia.org/wiki/Sensitivity_and_specificity", :target => "_blank"} Sensitivity:
%dd= sprintf("%.3f", model.sensitivity.to_f) 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