tfds.builder_cls
Stay organized with collections
Save and categorize content based on your preferences.
Fetches a tfds.core.DatasetBuilder
class by string name.
tfds.builder_cls(
name: str
) -> Type[dataset_builder.DatasetBuilder]
Args |
name
|
str , the registered name of the DatasetBuilder (the class name as
camel or snake case: MyDataset or my_dataset ).
|
Raises |
DatasetNotFoundError
|
if name is unrecognized.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tfds.builder_cls\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.3/tensorflow_datasets/core/load.py#L90-L126) |\n\nFetches a [`tfds.core.DatasetBuilder`](../tfds/core/DatasetBuilder) class by string name. \n\n tfds.builder_cls(\n name: str\n ) -\u003e Type[dataset_builder.DatasetBuilder]\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|--------------------------------------------------------------------------------------------------------------------------|\n| `name` | `str`, the registered name of the `DatasetBuilder` (the class name as camel or snake case: `MyDataset` or `my_dataset`). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A [`tfds.core.DatasetBuilder`](../tfds/core/DatasetBuilder) class. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|------------------------|----------------------------|\n| `DatasetNotFoundError` | if `name` is unrecognized. |\n\n\u003cbr /\u003e"]]