Skip to main content

Accuracy metrics

Classification accuracy

Measures the percentage of cases where the AI assigned the correct label or level, for example the priority a support assistant assigns to tickets.
Under-rating vs over-rating: In most risk-bearing domains, under-rating (missing critical cases) is far more dangerous than over-rating (unnecessary escalations). Weight your metrics accordingly.

Sensitivity and specificity

Critical metrics for evaluating detection of specific conditions or red flags.

Choosing a priority metric

sensitivity_calculation.py

Rubric-based scoring

For complex outputs like long-form responses or generated documents, rubric-based scoring provides structured evaluation across multiple dimensions.
rubric_definition.py

Custom metrics

Define metrics specific to your domain and use cases.
custom_metrics.py

Confidence intervals

All metrics include confidence intervals to quantify uncertainty, especially important for small sample sizes.
Sample size matters: For rare cases, you may need larger datasets to achieve narrow confidence intervals. Akhara warns when sample sizes are too small for reliable conclusions.

Metric aggregation

Combine multiple metrics into composite scores for overall model assessment.

Exporting metrics

Export metrics in formats suitable for compliance documentation, dashboards, or CI/CD pipelines.