tfma.writers.MetricsPlotsAndValidationsWriter
Stay organized with collections
Save and categorize content based on your preferences.
Returns metrics and plots writer.
tfma.writers.MetricsPlotsAndValidationsWriter(
output_paths: Dict[str, str],
eval_config: tfma.EvalConfig
,
add_metrics_callbacks: Optional[List[types.AddMetricsCallbackType]] = None,
metrics_key: str = constants.METRICS_KEY,
plots_key: str = constants.PLOTS_KEY,
attributions_key: str = constants.ATTRIBUTIONS_KEY,
validations_key: str = constants.VALIDATIONS_KEY,
output_file_format: str = _TFRECORD_FORMAT,
rubber_stamp: Optional[bool] = False,
stage_name: str = METRICS_PLOTS_AND_VALIDATIONS_WRITER_STAGE_NAME
) -> tfma.writers.Writer
Note, sharding will be enabled by default if a output_file_format is provided.
The files will be named -SSSSS-of-NNNNN.
where SSSSS is the shard number and NNNNN is the number of shards.
Args |
output_paths
|
Output paths keyed by output key (e.g. 'metrics', 'plots',
'validation').
|
eval_config
|
Eval config.
|
add_metrics_callbacks
|
Optional list of metric callbacks (if used).
|
metrics_key
|
Name to use for metrics key in Evaluation output.
|
plots_key
|
Name to use for plots key in Evaluation output.
|
attributions_key
|
Name to use for attributions key in Evaluation output.
|
validations_key
|
Name to use for validations key in Evaluation output.
|
output_file_format
|
File format to use when saving files. Currently
'tfrecord' and 'parquet' are supported and 'tfrecord is the default'.
If using parquet, the output metrics and plots files will contain two
columns, 'slice_key' and 'serialized_value'. The 'slice_key' column will
be a structured column matching the metrics_for_slice_pb2.SliceKey proto.
The 'serialized_value' column will contain a serialized MetricsForSlice or
PlotsForSlice proto. The validation result file will contain a single
column 'serialized_value' which will contain a single serialized
ValidationResult proto.
|
rubber_stamp
|
True if this model is being rubber stamped. When a model is
rubber stamped diff thresholds will be ignored if an associated baseline
model is not passed.
|
stage_name
|
The stage name to use when this writer is added to the Beam
pipeline.
|
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."],[],[]]