tfma.metrics.DerivedMetricComputation
Stay organized with collections
Save and categorize content based on your preferences.
DerivedMetricComputation derives its result from other computations.
tfma.metrics.DerivedMetricComputation(
keys: List[tfma.metrics.MetricKey
],
result: Callable[[Dict[MetricKey, Any]], Dict[MetricKey, Any]]
)
When creating derived metric computations it is recommended (but not required)
that the underlying MetricComputations that they depend on are defined at the
same time. This is to avoid having to pre-construct and pass around all the
required dependencies in order to construct a derived metric. The evaluation
pipeline is responsible for de-duplicating overlapping MetricComputations so
that only one computation is actually run.
A DerivedMetricComputation is uniquely identified by the combination of the
result function's name and the keys. Duplicate computations will be removed
automatically.
Attributes |
keys
|
List of metric keys associated with derived computation. If the keys
are defined as part of the computation then this may be empty in which
case only the result function name will be used for identifying
computation uniqueness.
|
result
|
Function (called per slice) to compute the result using the results
of other metric computations.
|
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.
[[["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."],[],[]]