Skip to content

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: str

get_feedback_result

get_feedback_result(
    tru_record: Record,
    feedback_name: str,
    timeout: int = 60,
) -> DataFrame

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: Record

feedback_name

The name of the feedback to retrieve results for.

TYPE: str

RETURNS DESCRIPTION
DataFrame

pd.DataFrame: A DataFrame containing the feedback results. If no feedback results are found, an empty DataFrame is returned.