tfds.builder
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Fetches a tfds.core.DatasetBuilder by string name.
tfds.builder(
    name: str, *, try_gcs: bool = False, **builder_kwargs
) -> dataset_builder.DatasetBuilder
Used in the notebooks
| Args | 
|---|
| name | str, the registered name of theDatasetBuilder(the class name as
camel or snake case:MyDatasetormy_dataset). This can be either'dataset_name'or'dataset_name/config_name'for datasets withBuilderConfigs. As a convenience, this string may contain
comma-separated keyword arguments for the builder. For example'foo_bar/a=True,b=3'would use theFooBardataset passing the keyword
argumentsa=Trueandb=3(for builders with configs, it would be'foo_bar/zoo/a=True,b=3'to use the'zoo'config and pass to the
builder keyword argumentsa=Trueandb=3). | 
| try_gcs | bool, if True,tfds.loadwill see if the dataset exists on the
public GCS bucket before building it locally. This is equivalent to
passingdata_dir='gs://tfds-data/datasets'. Warning:try_gcsis
different thanbuilder_kwargs.download_config.try_download_gcs.try_gcs(default: False) overridesdata_dirto be the public GCS
bucket.try_download_gcs(default: True) allows downloading from GCS
while keeping a differentdata_dirthan the public GCS bucket.  So, to
fully bypass GCS, please usetry_gcs=Falseanddownload_and_prepare_kwargs={'download_config':
tfds.core.download.DownloadConfig(try_download_gcs=False)}). | 
| **builder_kwargs | dictof keyword arguments passed to thetfds.core.DatasetBuilder. | 
| Raises | 
|---|
| DatasetNotFoundError | if nameis 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."],[],[]]