ontolearn.ea_algorithms
Evolutionary algorithms (for Evolearner).
Attributes
Classes
An abstract class for evolutionary algorithms. |
|
An abstract class for evolutionary algorithms. |
|
An abstract class for evolutionary algorithms. |
|
An abstract class for evolutionary algorithms. |
|
An abstract class for evolutionary algorithms. |
Module Contents
- ontolearn.ea_algorithms.logger
- class ontolearn.ea_algorithms.AbstractEvolutionaryAlgorithm[source]
An abstract class for evolutionary algorithms.
- __slots__ = ()
- name: ClassVar[str]
- class ontolearn.ea_algorithms.BaseEvolutionaryAlgorithm[source]
Bases:
AbstractEvolutionaryAlgorithm
An abstract class for evolutionary algorithms.
- __slots__ = ()
- class ontolearn.ea_algorithms.EASimple(crossover_pr: float = 0.9, mutation_pr: float = 0.1, elitism: bool = False, elite_size: float = 0.1)[source]
Bases:
BaseEvolutionaryAlgorithm
An abstract class for evolutionary algorithms.
- __slots__ = ('crossover_pr', 'mutation_pr', 'elitism', 'elite_size')
- name: Final = 'EASimple'
- crossover_pr: float
- mutation_pr: float
- elitism: bool
- elite_size: float
- class ontolearn.ea_algorithms.RegularizedEvolution[source]
Bases:
BaseEvolutionaryAlgorithm
An abstract class for evolutionary algorithms.
- __slots__ = ()
- name: Final = 'RegularizedEvolution'
- class ontolearn.ea_algorithms.MultiPopulation(base_algorithm: BaseEvolutionaryAlgorithm | None = None, migration_size: float = 0.1, num_populations: int = 4, iso_generations: float = 0.1, boost: float = 0.0)[source]
Bases:
AbstractEvolutionaryAlgorithm
An abstract class for evolutionary algorithms.
- __slots__ = ('base_algorithm', 'migration_size', 'num_populations', 'iso_generations', 'boost')
- name: Final = 'MultiPopulation'
- base_algorithm: BaseEvolutionaryAlgorithm
- migration_size: float
- num_populations: int
- iso_generations: float
- boost: float