tfma.metrics.MetricKey
Stay organized with collections
Save and categorize content based on your preferences.
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
)
Attributes |
name
|
Metric name. Names starting with '' are private and will be filtered
from the final results. Names starting with two underscores, '_' are
reserved for internal use.
|
model_name
|
Optional model name (if multi-model evaluation).
|
output_name
|
Optional output name (if multi-output model type).
|
sub_key
|
Optional sub key.
|
aggregation_type
|
Optional Aggregation type.
|
example_weighted
|
Indicates whether this metric was weighted by examples.
|
is_diff
|
Optional flag to indicate whether this metrics is a diff metric.
|
Methods
from_proto
View source
@staticmethod
from_proto(
pb: metrics_for_slice_pb2.MetricKey
) -> 'MetricKey'
Configures class from proto.
make_baseline_key
View source
make_baseline_key(
model_name: str
) -> 'MetricKey'
make_diff_key
View source
make_diff_key() -> 'MetricKey'
to_proto
View source
to_proto() -> metrics_for_slice_pb2.MetricKey
Converts key to proto.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-26 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]