Renders the plot view as widget.
tfma.view.render_plot(
result: tfma.EvalResult
,
slicing_spec: Optional[Union[slicer.SingleSliceSpec, tfma.SlicingSpec
]] = None,
output_name: Optional[str] = None,
class_id: Optional[int] = None,
top_k: Optional[int] = None,
k: Optional[int] = None,
label: Optional[str] = None
) -> Optional[visualization.PlotViewer]
Used in the notebooks
Args |
result
|
An tfma.EvalResult.
|
slicing_spec
|
The tfma.SlicingSpec to identify the slice. Show overall if
unset.
|
output_name
|
A string representing the output name.
|
class_id
|
A number representing the class id if multi class.
|
top_k
|
The k used to compute prediction in the top k position.
|
k
|
The k used to compute prediciton at the kth position.
|
label
|
A partial label used to match a set of plots in the results.
|
Returns |
A PlotViewer object if in Jupyter notebook; None if in Colab.
|