tfma.view.render_plot
Stay organized with collections
Save and categorize content based on your preferences.
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.
|
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.",
"confidential": False
}