Stay organized with collections Save and categorize content based on your preferences.

Renders the slicing metrics view as widget.

Used in the notebooks

Used in the tutorials

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.
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

A SlicingMetricsViewer object if in Jupyter notebook; None if in Colab.