diff options
Diffstat (limited to 'views/classification_validation.haml')
-rw-r--r-- | views/classification_validation.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/views/classification_validation.haml b/views/classification_validation.haml index 94ba8f9..41362ba 100644 --- a/views/classification_validation.haml +++ b/views/classification_validation.haml @@ -1,17 +1,17 @@ %dt Correct predictions: %dd - = sprintf("%.2f", model.correct_predictions) if model.correct_predictions + = 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) if model.weighted_area_under_roc + = 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) if model.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) if model.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 |