Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions uncertainty_baselines/datasets/toxic_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,14 @@ def _download_and_prepare(self, dl_manager, download_config=None):
return self._tfds_dataset_builder._download_and_prepare( # pylint: disable=protected-access
dl_manager, download_config)

def _as_dataset(self,
split: tfds.Split,
decoders=None,
read_config=None,
shuffle_files=False) -> tf.data.Dataset:
def _as_dataset(
self,
split: tfds.Split,
decoders=None,
read_config=None,
shuffle_files=False,
file_format: str | tfds.core.FileFormat | None = None,
) -> tf.data.Dataset:
raise NotImplementedError

# Note that we override `as_dataset` instead of `_as_dataset` to avoid any
Expand Down
Loading