diff options
Diffstat (limited to 'lib/utils.rb')
-rw-r--r-- | lib/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.rb b/lib/utils.rb index d96c2b3..eccec46 100644 --- a/lib/utils.rb +++ b/lib/utils.rb @@ -60,7 +60,7 @@ module OpenTox ds = OpenTox::Dataset.new ds.save parser.dataset = ds - if compounds.size == 1 + if compounds.size < 4 ds = parser.load_csv(master.collect{|r| r.join(",")}.join("\n"),false,true,false) # all_numeric = true, all features should be treated as numeric else ds = parser.load_csv(master.collect{|r| r.join(",")}.join("\n"),false,false,true) # del_nominal = true, which removes nominal features |