tfds.core.Version

View source on GitHub

Class Version

Dataset version MAJOR.MINOR.PATCH.

__init__

View source

__init__(
    version_str,
    description=None,
    experiments=None
)

Initialize self. See help(type(self)) for accurate signature.

Properties

tuple

Methods

__eq__

View source

__eq__(other)

Return self==value.

__ge__

View source

__ge__(other)

Return self>=value.

__gt__

View source

__gt__(other)

Return self>value.

__le__

View source

__le__(other)

Return self<=value.

__lt__

View source

__lt__(other)

Return self<value.

__ne__

View source

__ne__(other)

Return self!=value.

implements

View source

implements(experiment)

Returns True if version implements given experiment.

match

View source

match(other_version)

Returns True if other_version matches.

Args:

  • other_version: string, of the form "x[.y[.x]]" where {x,y,z} can be a number or a wildcard.