ts_benchmark.report.report_dash package

ts_benchmark.report.report_dash.app module

Functions

report(report_config)

Generates a report.

report(report_config: Dict) NoReturn[source]

Generates a report.

processing log files, computing leaderboard metrics, and serving the report through a Dash web application.

Parameters:

report_config – Dictionary containing the following keys: - log_files_list (List[str] or pd.DataFrame): List of log file paths or a DataFrame. - report_metrics (str or List[str]): Metrics to include in the leaderboard. - aggregate_type (str): Aggregation method for metrics (default is ‘mean’). - fill_type (str): Method to handle missing values (default is ‘mean_value’). - null_value_threshold (float): Threshold for dropping columns with too many null values. - host (str): Host address for the web server (default is “0.0.0.0”). - port (str): Port number for the web server (default is “12345”). - debug (bool): Enable or disable debug mode (default is False).

Returns:

None

ts_benchmark.report.report_dash.layout module

Functions

format_data_columns(df)

Formats the columns of a DataFrame for display in a Dash DataTable component.

generate_layout([page_content])

Generates the layout for the web application.

format_data_columns(df: pandas.DataFrame) List[source]

Formats the columns of a DataFrame for display in a Dash DataTable component.

Parameters:

df – The DataFrame to format columns for.

Returns:

A list of dictionaries, each containing column metadata for the DataTable.

generate_layout(page_content: List | None = None) dash.development.base_component.Component[source]

Generates the layout for the web application.

Parameters:

page_content – Optional list of components to be displayed in the content area.

Returns:

The complete layout as a Dash Component.

ts_benchmark.report.report_dash.memory module

READONLY_MEMORY: Stores global read-only data, which should only be set during main app initialization.