tfds.core.MetadataDict

View source on GitHub

Class MetadataDict

A tfds.core.Metadata object that acts as a dict.

Inherits From: Metadata

By default, the metadata will be serialized as JSON.

__init__

__init__(
    *args,
    **kwargs
)

__new__

__new__(
    type,
    *args,
    **kwargs
)

Methods

__contains__

__contains__(key)

__eq__

__eq__(value)

__ge__

__ge__(value)

__gt__

__gt__(value)

__iter__

__iter__()

__le__

__le__(value)

__len__

__len__()

__lt__

__lt__(value)

__ne__

__ne__(value)

fromkeys

fromkeys(
    type,
    iterable,
    value
)

load_metadata

View source

load_metadata(data_dir)

Restore the metadata.

save_metadata

View source

save_metadata(data_dir)

Save the metadata.