Skip to main content

Evaluation Metric Ontology

Evaluation Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
SEMANTIC LIBRARY — AI CORE — ENTITY GRAPH
EVALUATION METRIC ONTOLOGY — FLOW ALGEBRA
Version: 1.0 | Date: 2026-11-03 | Language: en-GB
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/evaluation-entities/evaluation-metric-ontology.html
Status: Extended formalisation; the accessible page identifies the ontology but does not expose its complete embedded specification. The rules below are a proposed formal model, not a transcription of hidden source content.

01. PURPOSE
Define a typed, reproducible evaluation metric entity that transforms validated evaluation examples and model outputs into interpretable performance measurements with provenance, uncertainty and constraints.

02. ENTITY DEFINITION
Metric M = (id, name, task, domain, formula, direction, range, unit, aggregation, threshold, version, provenance).
Evaluation context C = (dataset, split, population, model, run, reference, protocol, timestamp).
Metric result Q = (metric_id, value, support, uncertainty, validity, provenance).

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observations, labels, predictions, weights and run context.
R_t: metric definitions, aggregation rules and comparison relations.
B_t: admissibility boundaries, split isolation, numerical domains and privacy constraints.
K_t: verified knowledge, historical measurements, calibration and provenance.

04. INPUT CONTRACT
Input E = {(y_i, yhat_i, w_i, group_i, metadata_i)} for i = 1..n.
Require n > 0, w_i >= 0, sum_i w_i > 0, compatible task types and a declared metric definition.
Missing values and abstentions must follow an explicit policy; do not silently discard examples.

05. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t | B_t(x) = true}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t, observations_t)
Metric values are calculated by deterministic metric functions where specified; the argmax is a selection/routing operator, NOT a substitute for the metric formula.

06. METRIC EVALUATION FLOW
F_metric: (E, M, C) -> (Q, diagnostics)
Validate -> normalise by declared policy -> compute sufficient statistics -> aggregate -> estimate uncertainty -> check boundaries -> record result.
Reject invalid inputs with a reason code rather than fabricating a score.

07. CLASSIFICATION METRICS
TP, FP, TN, FN from a declared positive class and decision threshold.
Accuracy = (TP + TN)/(TP + TN + FP + FN).
Precision = TP/(TP + FP); Recall = TP/(TP + FN).
F1 = 2*Precision*Recall/(Precision + Recall).
Undefined denominators yield UNDEFINED with an explicit zero-division policy; do not assume zero.
For multiclass tasks, declare micro, macro or weighted averaging.

08. REGRESSION METRICS
MAE = sum_i w_i*abs(y_i - yhat_i)/sum_i w_i.
MSE = sum_i w_i*(y_i - yhat_i)^2/sum_i w_i.
RMSE = sqrt(MSE).
Declare target units and whether scaling or transformations have been reversed.

09. PROBABILISTIC METRICS
LogLoss = -sum_i w_i*log(p_i(y_i))/sum_i w_i, requiring valid probabilities.
Brier = sum_i w_i*(p_i - y_i)^2/sum_i w_i for binary targets.
Probability clipping, if used, must be declared and versioned.
Calibration and discrimination are distinct properties; report them separately.

10. GENERATIVE AND LANGUAGE METRICS
Exact match, token overlap, semantic similarity, preference judgements and task-specific rubric scores are separate metric types.
Record judge identity, rubric version, prompt, sampling settings and inter-rater agreement where relevant.
Automatic scores do not by themselves establish factual correctness or safety.

11. AGGREGATION RULES
MacroMean = (1/G)*sum_g score_g for G eligible groups.
WeightedMean = sum_g n_g*score_g/sum_g n_g where n_g is declared support.
Report per-group support, missing groups and weighting policy.
Do not average F1 scores as if identical to micro-F1.

12. UNCERTAINTY
Q = (estimate, confidence_interval, method, assumptions, n_effective).
Bootstrap intervals must state sampling unit and number of resamples.
Paired model comparisons should preserve shared examples in resampling.
Confidence intervals are not proof of model superiority.

13. FAIRNESS AND SUBGROUPS
For each permitted group g, compute Q_g = F_metric(E_g, M, C_g).
Disparity = declared comparison(Q_g, Q_reference).
Small groups, missing labels, selection bias and privacy thresholds trigger warnings or suppression.

14. ROBUSTNESS AND DISTRIBUTION SHIFT
Compare Q under documented perturbations, domains and time windows.
Delta_Q = Q_shifted - Q_baseline, respecting whether higher or lower is better.
Out-of-distribution claims require a defined distribution comparison.

15. ENTITY RELATIONSHIPS
EvaluationMetric --evaluates--> ModelOutput
EvaluationMetric --definedFor--> EvaluationTask
EvaluationMetric --computedOn--> EvaluationDataset
EvaluationMetric --produces--> EvaluationResult
EvaluationResult --belongsTo--> EvaluationRun
EvaluationMetric --uses--> ScoringRule
EvaluationResult --comparedWith--> BaselineResult
EvaluationResult --qualifiedBy--> UncertaintyEstimate

16. TRI-MAPPING
Semantic: metric names, task applicability, interpretation and provenance.
Mathematical: typed functions, sufficient statistics, domains and aggregation.
Operational: data validation, calculation, audit logs and reporting.
Map semantic meaning <-> mathematical definition <-> operational execution.

17. MAPPING TABLE
ENTITY                 INPUT                     TRANSFORMATION                 OUTPUT
MetricDefinition       task, formula, direction  schema validation               valid metric spec
EvaluationExample      labels, predictions       input validation                eligible example
SufficientStatistics   eligible examples         accumulation                    counts/sums
MetricResult           statistics, definition    metric formula                  numeric/undefined value
UncertaintyEstimate    samples, assumptions      interval estimation             interval and diagnostics
Comparison             paired results            effect calculation              delta and uncertainty

18. RECURSIVE UPDATE
Q_t = F_metric(E_t, M_t, C_t)
K_{t+1} = K_t union {Q_t, diagnostics_t, provenance_t}
If metric definition or data changes, issue a new versioned result; never overwrite provenance silently.

19. INFERENCE RULES
IF dataset split is unverified THEN status = INVALID.
IF metric denominator is zero THEN status = UNDEFINED.
IF metric direction differs THEN normalise interpretation, not raw metric values.
IF two scores use different protocols THEN comparison = NOT_COMPARABLE unless justified.
IF uncertainty overlaps THEN do not infer equivalence or superiority solely from overlap.
IF a threshold was tuned on the test split THEN flag leakage risk.

20. BOUNDARY MODEL
B = schema_valid AND task_compatible AND split_policy_valid AND metric_domain_valid AND provenance_present.
Privacy, consent and access constraints apply before subgroup reporting.
Do not use a single metric as a universal proxy for safety, utility or human impact.

21. EXECUTION CONDITIONS
Deterministic calculations are reproducible only with fixed data, definitions, preprocessing and numerical settings.
Execution guarantee is conditional on validated inputs and an implemented formula; no guarantee of empirical correctness or generalisation is implied.

22. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/evaluation-entities/evaluation-metric-ontology.html
CITATION_BACKLINK: source URL above
PURPOSE: retrieve, validate, calculate and interpret AI evaluation metrics.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: MetricDefinition, EvaluationTask, EvaluationDataset, EvaluationExample, EvaluationRun, EvaluationResult, Baseline, UncertaintyEstimate.
PATHWAYS: discover -> validate -> compute -> aggregate -> qualify -> compare -> publish.
MINI_RECURSION_ENGINE: evaluate -> diagnose -> revise protocol -> re-evaluate with versioned run.
INFERENCE_RULES: sections 19-20.
CONFIDENCE: report measurement uncertainty separately from confidence in source provenance.
SEMANTIC_EQUIVALENCE: require matching formula, task, aggregation, units and protocol.
FLOW_HASH: compute SHA-256 on canonicalised published TXT when deployed; not precomputed.
UPDATE_MODEL: immutable versioned revisions with source and timestamp.

23. TEXT DIAGRAM
[Evaluation Task] -> [Metric Definition] -> [Boundary Check]
                                            |
[Dataset] -> [Examples] -> [Predictions] -> [Compute Statistics]
                                            |
                                      [Metric Result]
                                            |
                                 [Uncertainty + Audit]
                                            |
                                   [Comparison/Report]
                                            |
                                   [Versioned Knowledge]

24. HOW TO READ
Read left to right: the metric definition determines what is measured; boundaries determine which observations may be used; the formula produces a result; diagnostics determine how cautiously to interpret it.

25. IMPLEMENTATION NOTES
Store metric_id, metric_version, run_id, dataset hash, split, task, aggregation, sample count, missing-data policy, numeric result/status, uncertainty method and source provenance.
Prefer machine-readable schemas and unit tests with known edge cases.

26. EXAMPLE
Binary classifier: TP=40, FP=10, FN=20, TN=30.
Precision=0.8; Recall=2/3; F1=8/11 (~0.7273); Accuracy=0.7.
These figures illustrate arithmetic only and are not empirical results.

27. VALIDATION TESTS
Test zero denominators, missing predictions, sample weighting, multiclass averaging, invalid probabilities, duplicated examples, threshold leakage and unequal subgroup support.

28. LIMITATIONS
Metric selection is normative and task-dependent. Distribution shift, label noise, model drift, sample selection and evaluator bias can undermine interpretation.

29. CITATION AND LICENCE
Credit: Mark Anthony Higgins and Sky — Recursive AI.
Refer to the source site's Open Research Licence for applicable reuse terms; this file does not assert or replace that licence.

30. END OF FLOW
Evaluation Metric Ontology — Flow Algebra v1.0.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ