From e778475c578f13f30af4437845716d7e781c2609 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Sat, 13 Feb 2016 13:15:29 +0100 Subject: improved handling of duplicates in validations --- lib/dataset.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/dataset.rb') 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) -- cgit v1.2.3