Skip to content

Commit 73b1052

Browse files
committed
Sort by shot number before training. Now using lambda - Julian
1 parent 720cb4c commit 73b1052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/guarantee_preprocessed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
pp = Preprocessor(conf)
1919
pp.clean_shot_lists()
2020
shot_list = pp.preprocess_all()
21-
#sorted(shot_list)
21+
sorted(shot_list,key = lambda shot: shot.get_number())
2222
shot_list_train,shot_list_test = shot_list.split_train_test(conf)
2323
num_shots = len(shot_list_train) + len(shot_list_test)
2424
validation_frac = conf['training']['validation_frac']

0 commit comments

Comments
 (0)