QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.asymmetric_islands.AIM Class Reference

Train heterogeneous teams through local QD and two-way policy migration. More...

Public Member Functions

 islands (self)
 team_populations (self)
 allocation_probabilities (self)
 stats (self)
 next_generation_cost (self)
 run (self, evaluate_role, evaluate_team, *, island_budget, team_budget)
 Spend separate hard budgets on whole island and mainland generations.

Detailed Description

Train heterogeneous teams through local QD and two-way policy migration.

Maintain one Grid or CVTGrid per class and one team population per task.

Each mainland team has exactly one member of every class. Island
search uses bounded numeric variation and caller-defined descriptors.
Mainlands use elitism, tournament selection and within-class crossover.
On migration rounds, remeasure the members of the best mainland teams
on their islands. Then allocate new island exports to mainland slots
using a role-specific softmax learned from measured contributions.

:param islands: Mapping of role names to distinct empty native grids
    with one explicit signed fitness objective.
:param tasks: Ordered iterable of at least two distinct mainland task IDs.
:param role_sizes: Mapping from the same roles to their genome lengths.
:param role_bounds: Optional mapping of roles to finite genome bounds.
    The default is [0, 1] for each role.
:param population_size: Maximum teams per mainland.
:param elite_size: Teams retained in each mainland before selecting new offspring.
:param island_offspring: Local search evaluations per role and generation.
:param migration_period: Mainland generations between migration rounds.
:param migrants_per_role: Island exports per role on each migration round.
    Defaults to population_size minus elite_size.
:param allocation_rate: Positive learning rate for mainland allocation logits.
:param entropy: Nonnegative regularization toward spread-out task allocation.
:param iso_sigma: Independent Gaussian variation scale on islands.
:param line_sigma: Shared Iso+LineDD direction scale on islands.
:param seed: Root seed for proposal, crossover and migration streams.

Definition at line 50 of file asymmetric_islands.py.

Member Function Documentation

◆ allocation_probabilities()

qdpy.algorithms.asymmetric_islands.AIM.allocation_probabilities ( self)
Return the current mainland selection probabilities for each island.

Definition at line 138 of file asymmetric_islands.py.

◆ islands()

qdpy.algorithms.asymmetric_islands.AIM.islands ( self)
Return a shallow copy mapping role names to live island archives.

Definition at line 128 of file asymmetric_islands.py.

◆ next_generation_cost()

qdpy.algorithms.asymmetric_islands.AIM.next_generation_cost ( self)
Return the island and team budget needed for one further generation.

Definition at line 161 of file asymmetric_islands.py.

◆ run()

qdpy.algorithms.asymmetric_islands.AIM.run ( self,
evaluate_role,
evaluate_team,
* ,
island_budget,
team_budget )

Spend separate hard budgets on whole island and mainland generations.

Continue training and return cumulative AIMStats.

evaluate_role(role, genome) returns (fitness, descriptors).
evaluate_team(task, genomes) returns (fitness, role contributions).
Either evaluator can return None to report a failed call. The team
fitness is maximized. Retained teams keep their original measurements.

Definition at line 274 of file asymmetric_islands.py.

◆ stats()

qdpy.algorithms.asymmetric_islands.AIM.stats ( self)
Return cumulative attempted evaluation counts and migrations.

Definition at line 144 of file asymmetric_islands.py.

◆ team_populations()

qdpy.algorithms.asymmetric_islands.AIM.team_populations ( self)
Return the measured teams for each task in descending fitness order.

Definition at line 133 of file asymmetric_islands.py.


The documentation for this class was generated from the following file: