diff options
author | mr <mr@mrautenberg.de> | 2011-04-19 16:19:06 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-04-19 16:19:06 +0200 |
commit | f08e1aa2f13910b70fc9094bdd04bc06d183c9e6 (patch) | |
tree | e48c1a695d66b6d95831c1a80a869cad87948e40 | |
parent | b379818883b17fb9883049b528b858925e48d486 (diff) | |
parent | 92e6af939a6a036cfbd653833b2b9f51c7e5f19c (diff) |
Merge branch 'hotfix/float_error_in_regession_validation_view'
-rw-r--r-- | views/regression_validation.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/regression_validation.haml b/views/regression_validation.haml index 00267a9..d5b3f6a 100644 --- a/views/regression_validation.haml +++ b/views/regression_validation.haml @@ -1,9 +1,9 @@ %dt %a{:href => "http://en.wikipedia.org/wiki/R-squared"} R-squared -%dd= sprintf '%.03g', model.r_square +%dd= sprintf '%.03g', model.r_square.to_f %dt %a{:href => "http://en.wikipedia.org/wiki/Root_mean_square_deviation"} Root Mean Square Error -%dd= sprintf '%.03g', model.root_mean_squared_error +%dd= sprintf '%.03g', model.root_mean_squared_error.to_f %dt %a{:href => "http://en.wikipedia.org/wiki/Mean_absolute_error"} Mean Absolute Error -%dd= sprintf '%.03g', model.mean_absolute_error +%dd= sprintf '%.03g', model.mean_absolute_error.to_f |