|View source on GitHub|
The base class for all structured metrics used within TFMA.
This class allows custom metrics to control how proto serialization happens, and how to handle basic algebraic operations used in computing confidence intervals and model diffs. By implementing the _apply_binary_op methods, subclasses can then be treated like primitive numeric types.
to_proto() -> metrics_for_slice_pb2.MetricValue