diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-05-09 15:44:29 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-05-09 15:44:29 +0200 |
commit | c1be8fe66f640d44dbbc9bfe5212733994bfb9c5 (patch) | |
tree | 42758f48d01958286dd9c6ef02f1669a5b6abdbd /lib | |
parent | 611bac891177f8d9185d45486dd574b6ef4d1912 (diff) |
physchem crossvalidation fixed, test_compound_descriptor_parameters assertions fixed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/regression.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/regression.rb b/lib/regression.rb index 691f903..2eaae73 100644 --- a/lib/regression.rb +++ b/lib/regression.rb @@ -94,7 +94,7 @@ module OpenTox data_frame[0][i] = act n["tanimoto"] ? weights << n["tanimoto"] : weights << 1.0 # TODO cosine ? neighbor.physchem_descriptors.each do |pid,values| - values = [values] if values.is_a? Float + values = [values] unless values.is_a? Array values.uniq! warn "More than one value for '#{Feature.find(pid).name}': #{values.join(', ')}. Using the median." unless values.size == 1 j = pc_ids.index(pid)+1 |