From d9c9d78e49d886ea91386adbbd2b523347df226e Mon Sep 17 00:00:00 2001 From: "helma@in-silico.ch" Date: Mon, 29 Oct 2018 20:34:39 +0100 Subject: dataset predictions fixed --- lib/validation-statistics.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/validation-statistics.rb') diff --git a/lib/validation-statistics.rb b/lib/validation-statistics.rb index e440731..7bae891 100644 --- a/lib/validation-statistics.rb +++ b/lib/validation-statistics.rb @@ -150,8 +150,7 @@ module OpenTox y = {:all => [],:without_warnings => []} self.nr_predictions = {:all =>0,:without_warnings => 0} predictions.each do |cid,pred| - p pred - if pred[:value] and pred[:measurements] + !if pred[:value] and pred[:measurements] and !pred[:measurements].empty? self.nr_predictions[:all] +=1 x[:all] << pred[:measurements].median y[:all] << pred[:value] -- cgit v1.2.3