View source on GitHub |
A SubKey identifies a sub-types of metrics and plots.
tfma.metrics.SubKey(
class_id: Optional[int] = None,
k: Optional[int] = None,
top_k: Optional[int] = None
)
Only one of class_id, k, or top_k can be set at a time.
Methods
from_proto
@staticmethod
from_proto( pb: metrics_for_slice_pb2.SubKey ) -> Optional['SubKey']
Creates class from proto.
to_proto
to_proto() -> metrics_for_slice_pb2.SubKey
Converts key to proto.