ontolearn.ea_utils
Utils for evolutionary algorithms.
Attributes
Classes
str(object='') -> str |
|
str(object='') -> str |
Functions
|
|
|
|
Module Contents
- ontolearn.ea_utils.Tree
- class ontolearn.ea_utils.PrimitiveFactory[source]
- __slots__ = 'generator'
- generator
- create_union() Callable[[owlapy.class_expression.OWLClassExpression, owlapy.class_expression.OWLClassExpression], owlapy.class_expression.OWLObjectUnionOf] [source]
- create_intersection() Callable[[owlapy.class_expression.OWLClassExpression, owlapy.class_expression.OWLClassExpression], owlapy.class_expression.OWLObjectIntersectionOf] [source]
- create_existential_universal(property_: owlapy.owl_property.OWLObjectPropertyExpression) Tuple[Callable[[owlapy.class_expression.OWLClassExpression], owlapy.class_expression.OWLObjectSomeValuesFrom], Callable[[owlapy.class_expression.OWLClassExpression], owlapy.class_expression.OWLObjectAllValuesFrom]] [source]
- create_card_restrictions(property_: owlapy.owl_property.OWLObjectPropertyExpression) Tuple[Callable[[int, owlapy.class_expression.OWLClassExpression], owlapy.class_expression.OWLObjectMinCardinality], Callable[[int, owlapy.class_expression.OWLClassExpression], owlapy.class_expression.OWLObjectMaxCardinality], Callable[[int, owlapy.class_expression.OWLClassExpression], owlapy.class_expression.OWLObjectExactCardinality]] [source]
- create_data_some_values(property_: owlapy.owl_property.OWLDataPropertyExpression) Tuple[Callable[[owlapy.owl_literal.OWLLiteral], owlapy.class_expression.OWLDataSomeValuesFrom], Callable[[owlapy.owl_literal.OWLLiteral], owlapy.class_expression.OWLDataSomeValuesFrom], Callable[[owlapy.owl_literal.OWLLiteral], owlapy.class_expression.OWLDataSomeValuesFrom], Callable[[owlapy.owl_literal.OWLLiteral], owlapy.class_expression.OWLDataSomeValuesFrom]] [source]
- class ontolearn.ea_utils.OperatorVocabulary[source]
Bases:
str
,enum.Enum
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
- UNION: Final = 'union'
- INTERSECTION: Final = 'intersection'
- NEGATION: Final = 'negation'
- EXISTENTIAL: Final = 'exists'
- UNIVERSAL: Final = 'forall'
- INVERSE: Final = 'inverse'
- CARD_MIN: Final = 'cardMin'
- CARD_MAX: Final = 'cardMax'
- CARD_EXACT: Final = 'cardExact'
- DATA_MIN_INCLUSIVE: Final = 'dataMinInc'
- DATA_MAX_INCLUSIVE: Final = 'dataMaxInc'
- DATA_MIN_EXCLUSIVE: Final = 'dataMinExc'
- DATA_MAX_EXCLUSIVE: Final = 'dataMaxExc'
- DATA_HAS_VALUE: Final = 'dataHasValue'
- class ontolearn.ea_utils.ToolboxVocabulary[source]
Bases:
str
,enum.Enum
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
- MUTATION: Final = 'mutate'
- CROSSOVER: Final = 'mate'
- SELECTION: Final = 'select'
- COMPILE: Final = 'compile'
- INIT_POPULATION: Final = 'population'
- FITNESS_FUNCTION: Final = 'apply_fitness'
- HEIGHT_KEY: Final = 'height'