Renders the slicing metrics view as widget.
tfma.view.render_slicing_attributions(
result: tfma.EvalResult
,
slicing_column: Optional[str] = None,
slicing_spec: Optional[Union[slicer.SingleSliceSpec, tfma.SlicingSpec
]] = None,
metric_name: Optional[str] = None,
weighted_example_column: Optional[str] = None,
event_handlers: Optional[Callable[[Dict[str, Union[str, float]]], None]] = None
) -> Optional[visualization.SlicingMetricsViewer]
Args |
result
|
An tfma.EvalResult.
|
slicing_column
|
The column to slice on.
|
slicing_spec
|
The tfma.SlicingSpec to filter results. If neither column nor
spec is set, show overall.
|
metric_name
|
Name of attributions metric to show attributions for. Optional
if only one metric used.
|
weighted_example_column
|
Override for the weighted example column. This can
be used when different weights are applied in different aprts of the model
(eg: multi-head).
|
event_handlers
|
The event handlers
|
Returns |
A SlicingMetricsViewer object if in Jupyter notebook; None if in Colab.
|