netunicorn.base.types.FlagValues

class FlagValues(*args, **kwargs)[source]

Bases: BaseModel

Flag values for experiment-wide flags. These flags could be get and set by the user or any executor.
One can use these flags to synchronize different executors, pass additional information, or manually control the experiment.

Flag value could contain text, integer, or both. Integer values could be atomically incremented or decremented.
Parameters:
  • args (Any)

  • kwargs (Any)

Attributes

int_value

Integer value of the flag.

text_value

Text value of the flag.

Methods

__call__(*args, **kwargs)[source]

Call self as a function.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

text_value: Optional[str] = None[source]

Text value of the flag.

int_value: int = 0[source]

Integer value of the flag.