raise MlflowException("Invalid comparator "%s" "
"not one of "%s"" % (comparator, cls.VALID_PARAM_COMPARATORS),
error_code=INVALID_PARAMETER_VALUE)
param = next((p for p in run.data.params if p.key == key), None)
lhs = param.value if param else None
elif key_type == cls._TAG_IDENTIFIER:
if comparator not in cls.VALID_TAG_COMPARATORS:
raise MlflowException("Invalid comparator "%s" "
After Change
"not one of "%s" % (comparator,
cls.VALID_METRIC_COMPARATORS),
error_code=INVALID_PARAMETER_VALUE)
lhs = run.data.metrics.get(key, None)
value = float(value)
elif key_type == cls._PARAM_IDENTIFIER:
if comparator not in cls.VALID_PARAM_COMPARATORS:
raise MlflowException("Invalid comparator "%s" "