![]() |
Dataset version MAJOR.MINOR.PATCH.
tfds.core.Version(
version: Union['Version', str],
experiments=None,
tfds_version_to_prepare=None
)
Args | |
---|---|
version
|
string. Eg: "1.2.3". |
experiments
|
dict of experiments. See Experiment. |
tfds_version_to_prepare
|
string, defaults to None. If set, indicates that
current version of TFDS cannot be used to download_and_prepare the
dataset, but that TFDS at version {tfds_version_to_prepare} should be
used instead.
|
Attributes | |
---|---|
tuple
|
Methods
implements
implements(
experiment
)
Returns True if version implements given experiment.
is_valid
@classmethod
is_valid( version: str ) -> bool
Returns True if the version can be parsed.
match
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. |
__eq__
__eq__(
other
)
Return self==value.
__ge__
__ge__(
other
)
Return self>=value.
__gt__
__gt__(
other
)
Return self>value.
__le__
__le__(
other
)
Return self<=value.
__lt__
__lt__(
other
)
Return self<value.
__ne__
__ne__(
other
)
Return self!=value.