Skip to main content

browseruse_bench.utils.stats_utils

Statistics-related utility functions.

Import


calculate_metric_stats

Calculate statistics for a specific metric.
list of dict
required
List of task results
str
required
Metric name, e.g., ttft_ms, end_to_end_ms, steps
str
default:"evaluation_details"
Path to metric in task dictionary
dict
Statistics dictionary containing count, mean, min, max, median

calculate_all_metrics_stats

Calculate statistics for multiple metrics.
list of str
default:"see below"
List of metric names

Return Structure


filter_tasks_by_label

Filter tasks by label.
list of dict
required
List of task results
str
default:"predicted_label"
Label key name
int
default:"1"
Label value (1 = success, 0 = failure)

generate_evaluation_summary

Generate evaluation summary.
list of dict
required
List of evaluation results
int
required
Total number of tasks
list of str
default:"see below"
List of metrics to calculate

Return Structure