summaryrefslogtreecommitdiff
path: root/views/regression_validation.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/regression_validation.haml')
-rw-r--r--views/regression_validation.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/views/regression_validation.haml b/views/regression_validation.haml
new file mode 100644
index 0000000..00267a9
--- /dev/null
+++ b/views/regression_validation.haml
@@ -0,0 +1,9 @@
+%dt
+ %a{:href => "http://en.wikipedia.org/wiki/R-squared"} R-squared
+%dd= sprintf '%.03g', model.r_square
+%dt
+ %a{:href => "http://en.wikipedia.org/wiki/Root_mean_square_deviation"} Root Mean Square Error
+%dd= sprintf '%.03g', model.root_mean_squared_error
+%dt
+ %a{:href => "http://en.wikipedia.org/wiki/Mean_absolute_error"} Mean Absolute Error
+%dd= sprintf '%.03g', model.mean_absolute_error