Missed TensorFlow World? Check out the recap. Learn more

tfma.unique_key

tfma.unique_key(
    key,
    current_keys,
    update_keys=False
)

Defined in util.py.

Returns a unique key given a list of current keys.

If the key exists in current_keys then a new key with _1, _2, ..., etc appended will be returned, otherwise the key will be returned as passed.

Args:

  • key: desired key name.
  • current_keys: List of current key names.
  • update_keys: True to append the new key to current_keys.