browseruse_bench.utils.stats_utils
统计相关的工具函数。导入
calculate_metric_stats
为指定指标计算统计信息。list of dict
必填
任务结果列表
str
必填
指标名称,例如
ttft_ms、end_to_end_ms、stepsstr
默认值:"evaluation_details"
指标在任务字典中的路径
dict
统计字典,包含
count、mean、min、max、mediancalculate_all_metrics_stats
为多个指标计算统计信息。list of str
默认值:"见下方说明"
指标名称列表
返回结构
filter_tasks_by_label
按 label 过滤任务。list of dict
必填
任务结果列表
str
默认值:"predicted_label"
Label 键名
int
默认值:"1"
Label 值(1 = 成功,0 = 失败)
generate_evaluation_summary
生成评估汇总。list of dict
必填
评估结果列表
int
必填
任务总数
list of str
默认值:"见下方说明"
要计算的指标列表