ontolearn.learners.sat_base
Base class for SAT-based concept learners.
Classes
Base class for SAT-based concept learners that use the SPELL framework. |
Module Contents
- class ontolearn.learners.sat_base.SATBaseLearner(knowledge_base: AbstractKnowledgeBase, reasoner: owlapy.abstracts.AbstractOWLReasoner | None = None, max_runtime: int | None = 60, cache_structure: bool = True)[source]
Base class for SAT-based concept learners that use the SPELL framework.
This class provides common functionality for converting between OWL ontologies and the Structure format used by SPELL, as well as converting results back to OWL class expressions.
- __slots__ = ('kb', 'reasoner', 'max_runtime', '_best_hypothesis', '_best_hypothesis_accuracy',...
- kb
- reasoner = None
- max_runtime = 60
- cache_structure = True
- start_time = None
- abstractmethod fit(lp: PosNegLPStandard)[source]
Find concept expressions that explain positive and negative examples.
- Parameters:
lp – Learning problem with positive and negative examples.
- Returns:
self