diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-02-13 13:15:29 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-02-13 13:15:29 +0100 |
commit | e778475c578f13f30af4437845716d7e781c2609 (patch) | |
tree | 82c14dabc4cf29df1f097a9f8c5c4d8b0b406c4d /lib/dataset.rb | |
parent | f61b7d3c65d084747dc1bf87214e5ec0c57326be (diff) |
improved handling of duplicates in validations
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r-- | lib/dataset.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index 55cde63..7925bcd 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -93,6 +93,7 @@ module OpenTox # @param [Integer] number of folds # @return [Array] Array with folds [training_dataset,test_dataset] def folds n + # TODO fix splits for duplicates len = self.compound_ids.size indices = (0..len-1).to_a.shuffle mid = (len/n) |