tfds.core.Experiment
Stay organized with collections
Save and categorize content based on your preferences.
Experiments which can be enabled/disabled on a per version basis.
Experiments are designed to gradually apply changes to datasets while
maintaining backward compatibility with previous versions. All experiments
should eventually be deleted, once used by all versions of all datasets.
Eg:
class Experiment(enum.Enum):
EXP_A = enum.auto() # Short description of experiment.
class MyBuilder(...):
VERSION = tfds.core.Version('1.2.3', experiments={
tfds.core.Experiment.EXP_A: True,
})
Class Variables |
DUMMY
|
<Experiment.DUMMY: 1>
|
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."],[],[],null,["# tfds.core.Experiment\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.3/tensorflow_datasets/core/utils/version.py#L30-L48) |\n\nExperiments which can be enabled/disabled on a per version basis.\n\nExperiments are designed to gradually apply changes to datasets while\nmaintaining backward compatibility with previous versions. All experiments\nshould eventually be deleted, once used by all versions of all datasets.\n\n#### Eg:\n\nclass Experiment(enum.Enum):\nEXP_A = enum.auto() # Short description of experiment.\n\nclass MyBuilder(...):\nVERSION = tfds.core.Version('1.2.3', experiments={\ntfds.core.Experiment.EXP_A: True,\n})\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|-------|-------------------------|\n| DUMMY | `\u003cExperiment.DUMMY: 1\u003e` |\n\n\u003cbr /\u003e"]]