In short.
Mistral’s Configure statistics is a guide for developers choosing evaluation summaries and acceptance thresholds, but numeric goals require numeric scores and exclude failed generations. It explains default and explicit statistic lists, headline ordering, classification metadata, percentile calculations and goal configuration. Its practical value lies in identifying cases where apparently reassuring metrics can omit failures or remain unevaluated. SDK versions, pricing and installation requirements are unspecified, and no code was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://docs.mistral.ai/studio/observability/evaluations/statistics.md], including numeric reductions, list behavior, classification, goals, boolean pitfalls, percentile calculations and empty samples. The aggregate_goal deprecation notice is included. Linked pages, including the retry guide, are outside scope. No code was executed; installation, runtime behavior, performance and release compatibility were not assessed. No licensing notice or library file was supplied.
The overview
Identity
Configure statistics is a Mistral Studio documentation page about converting individual evaluation scores into values for run tables, charts, comparisons and goals. The source is [https://docs.mistral.ai/studio/observability/evaluations/statistics.md].
It teaches a feature of the evaluation system through Python examples and explains behavior shared by the Python SDK, TypeScript SDK and backend.
Assessment
This is a useful reference when an existing evaluation needs a failure total, a latency percentile or a classification metric instead of the default average. It explains both configuration syntax and conditions that can make a result incomplete or unevaluable.
It assumes an existing evaluation context. Installation, authentication, dataset creation and complete run execution are not explained, so it does not establish an end-to-end setup.
Users
The guide suits developers and evaluation engineers working with Mistral Studio who need to choose what a run reports and which thresholds it must satisfy.
Beginners get examples for totals, latency and spam classification. Experienced developers get details about score typing, aggregation, class selection, stable identifiers and percentile interpolation.
Capabilities
Numeric factories provide average, sum, minimum, maximum, population standard deviation, count and percentiles from 0 through 100. Count includes successful, non-null numeric scores. A median uses percentile(50), while rates and accuracy can use an average over numeric 0/1 scores.
Omitting statistics preserves the numeric defaults avg, min, max, std and count. An explicit list replaces those defaults and controls their order; an empty list exposes no run-level statistics. The first effective entry becomes the headline value in the run table.
Classification factories provide precision, recall and F1 for a chosen positive class or with macro, micro or weighted averaging. Goals can attach directly to individual statistics.
Using it
Requirements
Numeric reductions require numeric scorer outputs. Pass/fail scorers must return 0 or 1; True and False are categorical values and cannot support numeric reductions.
Classification needs a predicted label in Score.value and an expected label in Score.metadata. The expected metadata key defaults to expected and can be changed with expected_key. Each classification factory requires exactly one of positive_label or average; average accepts macro, micro or weighted. Optional arguments include labels and goal.
The page does not specify minimum SDK versions, account entitlements, authentication requirements or supported deployment environments.
Mechanism
Statistics are serializable declarations understood by the SDK, backend and Studio. Their stable identifiers, such as avg, sum and p95, connect configuration to displayed results. The page says declarations support recomputation after filtering or rescoring.
Percentiles use Hyndman–Fan type 7. For n sorted scores, the zero-based position is h = (n − 1) × p / 100, with linear interpolation between the surrounding values. A single score returns that score. The page states that Python, TypeScript and the backend use this same algorithm.
Classification metrics come from confusion matrices of expected and predicted labels. Studio displays those matrices alongside the metrics and aggregates across runs by summing the matrices.
Setup
In an existing evaluation, import Evaluator, Statistic and, when needed, Goal from mistralai.evaluations. Supply a scorer and declare the desired statistics, placing the main display metric first.
Attach thresholds to statistics, such as Statistic.avg(goal=Goal.gte(0.9)). The page recommends this approach over the deprecated aggregate_goal field. A statistic-level goal does not carry its own metric argument because its attached statistic determines the target.
For classification, return a Score containing both the prediction and expected-label metadata. Specify labels when a fixed class set is needed for comparisons after filtering.
Example
The latency example declares statistics=[Statistic.percentile(95, goal=Goal.lte(500)), Statistic.percentile(50), Statistic.percentile(75)]. This makes p95 the headline, exposes those three percentiles without the numeric defaults, and sets a run threshold of 500 milliseconds for p95.
The rule-break example returns numeric 1 for a violation and 0 otherwise, then uses Statistic.sum(goal=Goal.lte(0)). Any scored violation makes the total exceed zero. Failed generations are absent from that total.
These are documentation examples, not measured results. The latency scorer’s implementation is not supplied, and neither example was executed.
Assessment & evidence
Limitations
Evaluators do not run on failed generations, so those records disappear from every statistic. The page directs readers to inspect run.failed_record_count against len(run.output_records) and refers to retry_failed_records() for retries.
Boolean scores receive categorical frequencies and mode when statistics are omitted. If a numeric statistic is explicitly requested for boolean scores, that statistic is unsupported and its goal is never evaluated.
Classification scores missing an expected label are excluded from the confusion matrix and counted in excluded_count. A metric with a zero denominator is null. Macro and weighted averages can change when filtering removes classes unless labels fixes the class set.
With no successful numeric scores, a declared count is zero and other declared numeric statistics are null. An empty sample therefore cannot satisfy a zero-failure sum goal. Runtime behavior and release compatibility were not independently assessed.
Reasoning
The documented choices support different questions: sum counts scored violations, an average of 0/1 scores gives a rate, and a percentile describes a position within the latency distribution. Choosing among them changes what a threshold measures.
The guide’s edge cases imply that a passing metric alone cannot establish complete run success. Failed-generation counts, excluded labels and null results also need attention. The page provides configuration semantics, not evidence that a particular model or application meets a quality target.
Alternatives
Within this feature, readers can keep the default summaries, declare a focused list or suppress run-level statistics. Accuracy can use numeric match scores with avg instead of a classification factory; binary classification can target one positive label, while multiclass metrics can use an averaging mode.
The page does not compare other evaluation frameworks or services. Their relative capabilities, migration effort and costs are unknown.
Evidence
The evidence consists of the complete Configure statistics page at the cited Mistral documentation address, captured on 2026-11-15 at 10:44:55.160 UTC. It includes API declarations, Python examples, calculation rules and failure conditions.
The page supports claims about documented behavior. It supplies no execution logs, benchmark measurements or independent validation, and no code was run.
Access & freshness
Costs
The page provides no prices, billing units, quotas or plan requirements. Costs for Studio access, generation, scoring and any required infrastructure are unknown.
Rights
The captured page contains no licensing or redistribution terms for the documentation, examples or SDK. Commercial-use and redistribution permissions are not established by this evidence.
Freshness
The capture date establishes when this text was retained, but the page supplies no publication date, update date or SDK version.
It explicitly marks aggregate_goal as deprecated and recommends statistic-level goals. Availability and compatibility in any particular installed SDK release remain unknown.
Actions
Choose the statistic that matches the question, put the headline metric first and attach its threshold directly. For numeric pass/fail checks, ensure the scorer emits numbers rather than booleans.
Before relying on a gate, inspect failed-generation counts, classification exclusions and null statistics. Fix the class list when filtered classification comparisons require consistent classes.
Confirm SDK support, installation requirements, pricing and applicable terms separately; this page does not establish them.
