View source on GitHub |
A MetricKey uniquely identifies a metric.
tfma.metrics.MetricKey(
name: str,
model_name: str = '',
output_name: str = '',
sub_key: Optional[tfma.metrics.SubKey
] = None,
aggregation_type: Optional[AggregationType] = None,
example_weighted: Optional[bool] = False,
is_diff: Optional[bool] = False
)
Methods
from_proto
@staticmethod
from_proto( pb: metrics_for_slice_pb2.MetricKey ) -> 'MetricKey'
Configures class from proto.
make_baseline_key
make_baseline_key(
model_name: str
) -> 'MetricKey'
make_diff_key
make_diff_key() -> 'MetricKey'
to_proto
to_proto() -> metrics_for_slice_pb2.MetricKey
Converts key to proto.