summaryrefslogtreecommitdiff
path: root/views/validation.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2016-11-24 16:03:09 +0000
committergebele <gebele@in-silico.ch>2016-11-24 16:03:09 +0000
commitf86c084311282036ffa7b4588c0fa0d5b59af95b (patch)
treea1c80b18ba9b2c4b3b95d1cda97144fe43a40cda /views/validation.haml
parent769f704a2b4e2d83256f580317ed8c0b48cc4f45 (diff)
several fixes; works with lazar tree e111369ce5564f159b3f5f85c92afdd22352eaa1
Diffstat (limited to 'views/validation.haml')
-rw-r--r--views/validation.haml16
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)} %"
-