Shuffle concatenated dataset;
This commit is contained in:
@@ -39,7 +39,7 @@ class Dataset:
|
|||||||
if len(datasets) == 0:
|
if len(datasets) == 0:
|
||||||
raise Exception("No datasets have been found. Check configuration")
|
raise Exception("No datasets have been found. Check configuration")
|
||||||
|
|
||||||
return concatenate_datasets(datasets)
|
return concatenate_datasets(datasets).shuffle(seed = 4711)
|
||||||
|
|
||||||
def loadFile(self, type_: str, path: str, context: Context, **kwargs):
|
def loadFile(self, type_: str, path: str, context: Context, **kwargs):
|
||||||
return self.__load(type_, context, data_files=path, **kwargs)
|
return self.__load(type_, context, data_files=path, **kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user