ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


Converts the given slice metrics into serialized proto MetricsForSlice.

metrics The slice metrics.
add_metrics_callbacks A list of metric callbacks. This should be the same list as the one passed to tfma.Evaluate().

The MetricsForSlice proto.

TypeError If the type of the feature value in slice key cannot be recognized.