Skip to content
Snippets Groups Projects
Commit 855937ee authored by Nikolai.Hartmann's avatar Nikolai.Hartmann
Browse files

ensure shuffling only once

parent a548e81e
No related branches found
No related tags found
No related merge requests found
......@@ -794,6 +794,12 @@ class ClassificationProject(object):
def shuffle_training_data(self):
if not self.data_loaded:
raise ValueError("Data not loaded! can't shuffle training data!")
if self.data_shuffled:
logger.warning("Data already shuffled, won't shuffle again")
np.random.seed(self.shuffle_seed)
# touch property to make sure it is created
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment