aip_sdk.MetricDirection
aip_sdk.MetricDirection
Intrinsic semantic of a metric's raw score — which way is "good".
HIGHER_IS_BETTER — a larger raw value is the better outcome (accuracy, recall,
helpfulness).
LOWER_IS_BETTER — a smaller raw value is the better outcome (toxicity, bias, an
error or miss rate). Such a metric is normalised with inverted=True so its
normalised score still runs higher-is-better; direction records the intrinsic
raw semantic so surfaces can label it without special-casing by name.
StrEnum so it serialises as a plain string in API responses and YAML run configs.
aip_sdk.MetricDirection.HIGHER_IS_BETTER
aip_sdk.MetricDirection.HIGHER_IS_BETTER = 'higher_is_better'
No docstring is defined in the source.
aip_sdk.MetricDirection.LOWER_IS_BETTER
aip_sdk.MetricDirection.LOWER_IS_BETTER = 'lower_is_better'
No docstring is defined in the source.