tfma.types.StructuredMetricValue

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.

Methods

to_proto

View source