mowl.evaluation

Functions

evaluate_faithfulness(model, test_sets, ...)

Evaluate a model on test sets of several normal forms.

Classes

BaseRankingEvaluator(heads, tails, ...)

Base class for ranking evaluation of ontology embedding methods.

DELEEvaluation([gci_name, relation, heads, ...])

The evaluation regime of DELE (Section 6.2, Tables 3-6).

DeductiveRankingEvaluator(dataset[, ...])

Head-centric ranking evaluator with DELE's filtering and macro/micro metrics.

EvaluationRegime()

Base class of evaluation regimes.

Evaluator(dataset[, device, batch_size])

Base evaluation class for ontology embedding methods.

ExactModelRegime([tol, k_max, max_certificates])

Whether a trained embedding is an exact model of the (training) ontology.

FaithfulnessHierarchy([normal_forms, k, ks, ...])

The faithfulness hierarchy of [MH26] as an evaluation regime.

FilteredRankingRegime([gci_name, target, ...])

Rank one entity of the test axioms of one normal form among a candidate set, with raw and filtered metrics.

GDAEvaluator(*args, **kwargs)

InclusionAccuracyRegime([splits, tol])

Fraction of atomic subsumptions \(C \sqsubseteq D\) whose regions are nested.

InferredSubsumptionRankingRegime([split, ...])

"Approximating deductive reasoning" of Box2EL (Section 4.4): the model is trained on the full ontology and ranks the atomic subsumptions \(C \sqsubseteq D\) that an \(\mathcal{EL}^{++}\) reasoner infers from it but that are not asserted (90% test, 10% validation).

KBEmbeddingProperties([satisfaction, ...])

[BGKLO24] property checks as an evaluation regime.

LogicalStatusOracle(axioms[, concept_names, ...])

Decides whether a candidate normal-form axiom is entailed by, contradicts, or is undetermined with respect to a normalised \(\mathcal{EL}^{++}\) ontology \(\mathcal{O}\) ([MH26], Definition 1).

LossModelness([tol, margin])

loss_modelness() as an evaluation regime: per normal form, the fraction of training axioms with (numerically) zero margin-free loss.

NormalFormRankingRegime([normal_forms, ...])

Per-normal-form axiom ranking of Box2EL.

OnTInferenceRankingRegime([split, ...])

OnT's inference task (Section 5.3): the model is trained on the whole normalised ontology and ranks the superclass of every inferred atomic subsumption \(C \sqsubseteq D\) (dataset.testing) among all concepts, as NF1 of OnTRankingRegime.

OnTRankingRegime([normal_forms, split, ...])

Per-normal-form axiom ranking of OnT (see the module docstring).

PPIEvaluator(*args, **kwargs)

RankingEvaluator(dataset[, batch_size, device])

Ranking evaluation class for ontology embedding methods.

RoleAssertionRankingRegime([split, ...])

Filtered head and tail ranking of role assertions.

SampledF1Regime([gci_name, num_negatives, ...])

Threshold classification of query axioms and random negatives, as in the RegD code (see the module docstring).

SubsumeeRankingRegime([split, candidates, ...])

Subsumption evaluation of EmEL++ (Mondal et al., AAAI-MAKE 2021, Section 4.4; reference Evaluating_HITS.py): for every test axiom \(C \sqsubseteq D\), all classes other than \(D\) are ranked by the distance of their centre from the centre of \(D\), and the rank of \(C\) is recorded (raw ranks, ties by position).

SubsumptionEvaluator(*args, **kwargs)

TransBoxNormalFormRankingRegime([...])

The per-normal-form ranking as re-implemented for TransBox (Yang, Chen, Sattler, WWW 2025, Section 6.2 and Appendix E; evaluate.py of the TransBox code).

Class Inheritance Diagram

Inheritance diagram of mowl.evaluation.base.BaseRankingEvaluator, mowl.evaluation.deductive.DELEEvaluation, mowl.evaluation.deductive.DeductiveRankingEvaluator, mowl.evaluation.regime.EvaluationRegime, mowl.evaluation.base.Evaluator, mowl.evaluation.exact_model.ExactModelRegime, mowl.evaluation.faithfulness.FaithfulnessHierarchy, mowl.evaluation.filtered_ranking.FilteredRankingRegime, mowl.evaluation.gda.GDAEvaluator, mowl.evaluation.inclusion_accuracy.InclusionAccuracyRegime, mowl.evaluation.normal_form_ranking.InferredSubsumptionRankingRegime, mowl.evaluation.properties.KBEmbeddingProperties, mowl.evaluation.faithfulness.LogicalStatusOracle, mowl.evaluation.faithfulness.LossModelness, mowl.evaluation.normal_form_ranking.NormalFormRankingRegime, mowl.evaluation.ont_ranking.OnTInferenceRankingRegime, mowl.evaluation.ont_ranking.OnTRankingRegime, mowl.evaluation.ppi.PPIEvaluator, mowl.evaluation.base.RankingEvaluator, mowl.evaluation.assertion_ranking.RoleAssertionRankingRegime, mowl.evaluation.sampled_f1.SampledF1Regime, mowl.evaluation.normal_form_ranking.SubsumeeRankingRegime, mowl.evaluation.subsumption.SubsumptionEvaluator, mowl.evaluation.normal_form_ranking.TransBoxNormalFormRankingRegime