summaryrefslogtreecommitdiff
path: root/lib/validation-statistics.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2019-06-20 22:01:50 +0200
committerChristoph Helma <helma@in-silico.ch>2019-06-20 22:01:50 +0200
commit455da06aa6459da0d25b286ca6cb866ff64c4c34 (patch)
treed0ed8fcf720a02742da781669251f379b8fd07f0 /lib/validation-statistics.rb
parent1b44e0cd76f2ead93b8b3fa0f970c85ef32a4b14 (diff)
separate csv serialisations for batch predictions and training data, repeated measurements in mutagenicity dataset fixed, daphnia import fixed, CENTRAL_MONGO_IP removed
Diffstat (limited to 'lib/validation-statistics.rb')
-rw-r--r--lib/validation-statistics.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/validation-statistics.rb b/lib/validation-statistics.rb
index 8a8970e..d603294 100644
--- a/lib/validation-statistics.rb
+++ b/lib/validation-statistics.rb
@@ -18,7 +18,7 @@ module OpenTox
if pred[:value] == v
confusion_matrix[:all][i][i] += 1
self.nr_predictions[:all] += 1
- if pred[:confidence].match(/High/i)
+ if pred[:confidence].match(/Similar/i)
confusion_matrix[:confidence_high][i][i] += 1
self.nr_predictions[:confidence_high] += 1
elsif pred[:confidence].match(/Low/i)
@@ -32,7 +32,7 @@ module OpenTox
if pred[:value] == v
confusion_matrix[:all][i][(i+1)%2] += 1
self.nr_predictions[:all] += 1
- if pred[:confidence].match(/High/i)
+ if pred[:confidence].match(/Similar/i)
confusion_matrix[:confidence_high][i][(i+1)%2] += 1
self.nr_predictions[:confidence_high] += 1
elsif pred[:confidence].match(/Low/i)