MetricsAggregator
A utility for computing aggregate statistics from evaluation metrics.
Declaration
struct MetricsAggregatorMentioned in
Overview
let accuracy = Metric("Accuracy")
func aggregateMetrics(using aggregator: inout MetricsAggregator) {
aggregator.computeMean(of: accuracy)
aggregator.computeMaximum(of: accuracy)
aggregator.computeStandardDeviation(of: accuracy)
}Use this structure to calculate summary statistics like mean, median, and standard deviation from your evaluation results. The aggregator processes metric data from a DataFrame and produces aggregated results.