Skip to content

Commit bc2776b

Browse files
committed
Fix bug in dataset_postprocessor in which the test dataset was generated from the train dataset
1 parent 46e6166 commit bc2776b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boiling_learning/datasets/creators.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def dataset_post_processor(
240240
data_augmentor.as_tf_py_function(pack_tuple=True),
241241
num_parallel_calls=AUTOTUNE,
242242
)
243-
ds_test = ds_train.map(
243+
ds_test = ds_test.map(
244244
data_augmentor.as_tf_py_function(pack_tuple=True),
245245
num_parallel_calls=AUTOTUNE,
246246
)
@@ -263,4 +263,4 @@ def dataset_post_processor(
263263
ds_val = ds_val.prefetch(AUTOTUNE)
264264
ds_test = ds_test.prefetch(AUTOTUNE)
265265

266-
return (ds_train, ds_val, ds_test)
266+
return ds_train, ds_val, ds_test

0 commit comments

Comments
 (0)