diff options
author | gebele <gebele@in-silico.ch> | 2016-11-24 16:31:26 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-11-24 16:31:26 +0000 |
commit | bfd31ed2c9d0cde8a53238c7368eb3d49c580b7d (patch) | |
tree | 91c3a2865302e1017db0dffb6015dfa3eb6c476f /views/validation.haml | |
parent | f0588c7e072ea3e22f26916d669e9baaa8fa3197 (diff) | |
parent | f86c084311282036ffa7b4588c0fa0d5b59af95b (diff) |
fixed merge
Diffstat (limited to 'views/validation.haml')
-rw-r--r-- | views/validation.haml | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/views/validation.haml b/views/validation.haml deleted file mode 100644 index fd63ea6..0000000 --- a/views/validation.haml +++ /dev/null @@ -1,16 +0,0 @@ -- case @model_type -- when "classification" - - prediction = @cv.metadata["http://www.opentox.org/api/1.2#classificationStatistics"]["http://www.opentox.org/api/1.2#numCorrect"] + @cv.metadata["http://www.opentox.org/api/1.2#classificationStatistics"]["http://www.opentox.org/api/1.2#numIncorrect"] - %p= "Number of predictions: #{prediction}" - - percent = @cv.metadata["http://www.opentox.org/api/1.2#classificationStatistics"]["http://www.opentox.org/api/1.2#percentCorrect"] - %p= "Correct predictions: #{percent.round(2)} %" -- when "regression" - - prediction = @cv.metadata["http://www.opentox.org/api/1.2#numInstances"].to_i - @cv.metadata["http://www.opentox.org/api/1.2#numUnpredicted"].to_i - %p= "Number of predictions: #{prediction}" - - rSquare = @cv.metadata["http://www.opentox.org/api/1.2#regressionStatistics"]["http://www.opentox.org/api/1.2#rSquare"] - %p= "R-squared: #{rSquare.round(2)} %" - - rootMeanSquaredError = @cv.metadata["http://www.opentox.org/api/1.2#regressionStatistics"]["http://www.opentox.org/api/1.2#rootMeanSquaredError"] - %p= "Root Mean Square Error: #{rootMeanSquaredError.round(2)} %" - - meanAbsoluteError = @cv.metadata["http://www.opentox.org/api/1.2#regressionStatistics"]["http://www.opentox.org/api/1.2#meanAbsoluteError"] - %p= "Mean Absolute Error: #{meanAbsoluteError.round(2)} %" - |