View source on GitHub
|
Identity of a dataset that completely identifies a dataset.
tfds.core.DatasetIdentity(
name: str,
version: utils.Version,
data_dir: str,
module_name: str,
config_name: (str | None) = None,
config_description: (str | None) = None,
config_tags: (list[str] | None) = None,
release_notes: (dict[str, str] | None) = None
)
Methods
from_builder
@classmethodfrom_builder( builder ) -> 'DatasetIdentity'
Constructs a DatasetIdentity from a given dataset builder.
from_proto
@classmethodfrom_proto( info_proto: dataset_info_pb2.DatasetInfo, data_dir: str ) -> 'DatasetIdentity'
Constructs a DatasetIdentity for a given dataset.
| Args | |
|---|---|
info_proto
|
The DatasetInfo proto for the dataset.
|
data_dir
|
Path to the data_dir for the dataset. |
| Returns | |
|---|---|
A DatasetIdentity object for the required dataset.
|
__eq__
__eq__(
other
)
Return self==value.
Class Variables | |
|---|---|
| config_description |
None
|
| config_name |
None
|
| config_tags |
None
|
| release_notes |
None
|
View source on GitHub