summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 05cd113..d7b2df6 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -272,7 +272,7 @@ module OpenTox
elsif neighbor_similarities.size == 1
prediction[:value] = nil
prediction[:warnings] << "Cannot create prediction: Only one similar compound for threshold #{threshold} in the training set (Threshold: #{algorithms[:similarity][:min].last})."
- prediction[:neighbors] = [{:id => neighbor_ids.first, :similarity => neighbor_similarities.first}]
+ prediction[:neighbors] = [{:id => neighbor_ids.first, :measurement => neighbor_dependent_variables[0], :similarity => neighbor_similarities.first}]
if threshold == algorithms[:similarity][:min].last
prediction[:confidence] = "Out of applicability domain: Only one similar compound in the training set."
return prediction