:py:mod:`ontolearn.learning_problem` ==================================== .. py:module:: ontolearn.learning_problem .. autoapi-nested-parse:: Learning problem in Ontolearn. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: ontolearn.learning_problem.EncodedPosNegLPStandard ontolearn.learning_problem.PosNegLPStandard ontolearn.learning_problem.EncodedPosNegUndLP ontolearn.learning_problem.PosNegUndLP Attributes ~~~~~~~~~~ .. autoapisummary:: ontolearn.learning_problem.logger .. py:data:: logger .. py:class:: EncodedPosNegLPStandard(kb_pos, kb_neg, kb_diff, kb_all) Bases: :py:obj:`ontolearn.abstracts.EncodedPosNegLPStandardKind` Encoded learning problem standard. .. attribute:: kb_pos Positive examples. :type: set .. attribute:: kb_neg Negative examples. :type: set .. attribute:: kb_diff kb_all - (kb_pos + kb_neg). :type: set .. attribute:: kb_all All examples/ all individuals set. :type: set .. py:attribute:: __slots__ :value: ('kb_pos', 'kb_neg', 'kb_diff', 'kb_all') .. py:attribute:: kb_pos :type: set .. py:attribute:: kb_neg :type: set .. py:attribute:: kb_diff :type: set .. py:attribute:: kb_all :type: set .. py:class:: PosNegLPStandard(pos: Set[owlapy.owl_individual.OWLNamedIndividual], neg: Set[owlapy.owl_individual.OWLNamedIndividual], all_instances: Optional[Set[owlapy.owl_individual.OWLNamedIndividual]] = None) Bases: :py:obj:`ontolearn.abstracts.AbstractLearningProblem` Positive-Negative learning problem standard. .. attribute:: pos Positive examples. .. attribute:: neg Negative examples. .. attribute:: all All examples. .. py:attribute:: __slots__ :value: ('pos', 'neg', 'all') .. py:method:: encode_kb(knowledge_base: ontolearn.knowledge_base.KnowledgeBase) -> EncodedPosNegLPStandard Encode the learning problem into the knowledge base. .. py:class:: EncodedPosNegUndLP Bases: :py:obj:`ontolearn.abstracts.EncodedLearningProblem` To be implemented. .. py:class:: PosNegUndLP(*args, **kwargs) Bases: :py:obj:`ontolearn.abstracts.AbstractLearningProblem` To be implemented.