tfma.evaluators.MetricsAndPlotsEvaluator
Stay organized with collections
Save and categorize content based on your preferences.
Creates an Evaluator for evaluating metrics and plots.
tfma.evaluators.MetricsAndPlotsEvaluator(
eval_shared_model: tfma.types.EvalSharedModel
,
desired_batch_size: Optional[int] = None,
metrics_key: str = constants.METRICS_KEY,
plots_key: str = constants.PLOTS_KEY,
run_after: str = slice_key_extractor.SLICE_KEY_EXTRACTOR_STAGE_NAME,
compute_confidence_intervals: Optional[bool] = False,
min_slice_size: int = 1,
serialize=False,
random_seed_for_testing: Optional[int] = None
) -> tfma.evaluators.Evaluator
Args |
eval_shared_model
|
Shared model parameters for EvalSavedModel.
|
desired_batch_size
|
Optional batch size for batching in Aggregate.
|
metrics_key
|
Name to use for metrics key in Evaluation output.
|
plots_key
|
Name to use for plots key in Evaluation output.
|
run_after
|
Extractor to run after (None means before any extractors).
|
compute_confidence_intervals
|
Whether or not to compute confidence
intervals.
|
min_slice_size
|
If the number of examples in a specific slice is less
than min_slice_size, then an error will be returned for that slice.
This will be useful to ensure privacy by not displaying the aggregated
data for smaller number of examples.
|
serialize
|
If true, serialize the metrics to protos as part of the
evaluation as well.
|
random_seed_for_testing
|
Provide for deterministic tests only.
|
Returns |
Evaluator for evaluating metrics and plots. The output will be stored under
'metrics' and 'plots' keys.
|
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."],[],[]]