![]() |
Helper method for retrieving a sole labeled input.
tfx.components.util.value_utils.GetSoleValue(
inputs: Mapping[Text, Sequence[Any]],
label: Text,
strict=True
) -> Any
Args | |
---|---|
inputs
|
Dict from label to a value list. |
label
|
Label of the value to retrieve. |
strict
|
If true, exactly one value should exist for label. |
Returns | |
---|---|
A sole labeled value. |
Raises | |
---|---|
ValueError
|
If there is no/multiple input associated with the label. |