trulens.dashboard.display¶
trulens.dashboard.display
¶
Classes¶
Functions¶
get_icon
¶
get_icon(fdef: FeedbackDefinition, result: float) -> str
Get the icon for a given feedback definition and result.
Args:
FeedbackDefinition
The feedback definition
result : float The result of the feedback
RETURNS | DESCRIPTION |
---|---|
str
|
The icon for the feedback
TYPE:
|
get_feedback_result
¶
Retrieve the feedback results for a given feedback name from a TruLens record.
PARAMETER | DESCRIPTION |
---|---|
tru_record |
The record containing feedback and future results.
TYPE:
|
feedback_name |
The name of the feedback to retrieve results for.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
DataFrame
|
pd.DataFrame: A DataFrame containing the feedback results. If no feedback results are found, an empty DataFrame is returned. |