From 455da06aa6459da0d25b286ca6cb866ff64c4c34 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 20 Jun 2019 22:01:50 +0200 Subject: separate csv serialisations for batch predictions and training data, repeated measurements in mutagenicity dataset fixed, daphnia import fixed, CENTRAL_MONGO_IP removed --- lib/validation-statistics.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/validation-statistics.rb') 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) -- cgit v1.2.3