Skip to content

Commit bfeac97

Browse files
mpcallanancopybara-github
authored andcommitted
Update tf.data.Dataset.rejection_resample docs to clarify functionality.
PiperOrigin-RevId: 473084015
1 parent e41a7e5 commit bfeac97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/guide/data.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2627,7 +2627,7 @@
26272627
"it needs a separate `tf.data.Dataset` per class. You could use `Dataset.filter`\n",
26282628
"to create those two datasets, but that results in all the data being loaded twice.\n",
26292629
"\n",
2630-
"The `tf.data.Dataset.rejection_resample` method can be applied to a dataset to rebalance it, while only loading it once. Elements will be dropped from the dataset to achieve balance.\n",
2630+
"The `tf.data.Dataset.rejection_resample` method can be applied to a dataset to rebalance it, while only loading it once. Elements will be dropped or repeated to achieve balance.\n",
26312631
"\n",
26322632
"The `rejection_resample` method takes a `class_func` argument. This `class_func` is applied to each dataset element, and is used to determine which class an example belongs to for the purposes of balancing.\n",
26332633
"\n",

0 commit comments

Comments
 (0)