We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ca2920 commit 2485e63Copy full SHA for 2485e63
1 file changed
src/data.py
@@ -376,7 +376,7 @@ def prepare_data_index(self,
376
if 0 < testing_max_sounds < len(self.data_index[set_index]):
377
self.data_index[set_index] = self.np_rng.choice(self.data_index[set_index], \
378
testing_max_sounds,
379
- replace=False)
+ replace=False).tolist()
380
if set_index == 'testing':
381
self.catalog_overlaps(self.data_index['testing'])
382
labels = [sound['label'] for sound in self.data_index['testing']]
0 commit comments