QDpy
Loading...
Searching...
No Matches
parametric.py File Reference

Parametric-Task MAP-Elites and rebinning of measured tasks. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.parametric._Coordinates
class  qdpy.algorithms.parametric.ParametricTaskEvaluation
 A successful evaluation and the exact task that produced its fitness. More...
class  qdpy.algorithms.parametric.ParametricTaskResult
 Archive, successful evaluations, and attempt counts from PT-ME. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.parametric._regression_child (archive, neighbors, point, genomes, rng)
 qdpy.algorithms.parametric._sbx (first, second, rng, eta=10)
 qdpy.algorithms.parametric.parametric_task_map_elites (evaluate, *, genome_bounds, task_bounds, centroids, budget, seed=0, regression_probability=0.5, tournament_sizes=(1, 5, 10, 50, 100, 500))
 Search over new continuous task parameters using PT-ME.

Detailed Description

Parametric-Task MAP-Elites and rebinning of measured tasks.

Definition in file parametric.py.

Function Documentation

◆ _regression_child()

qdpy.algorithms.parametric._regression_child ( archive,
neighbors,
point,
genomes,
rng )
protected
Predict a normalized genome from adjacent elites using through-origin least squares.

Definition at line 134 of file parametric.py.

◆ _sbx()

qdpy.algorithms.parametric._sbx ( first,
second,
rng,
eta = 10 )
protected
Draw one simulated binary crossover child in the unit box.

Definition at line 149 of file parametric.py.

◆ parametric_task_map_elites()

qdpy.algorithms.parametric.parametric_task_map_elites ( evaluate,
* ,
genome_bounds,
task_bounds,
centroids,
budget,
seed = 0,
regression_probability = 0.5,
tournament_sizes = (1, 5, 10, 50, 100, 500) )

Search over new continuous task parameters using PT-ME.

Run Parametric-Task MAP-Elites with CVT task cells and one fitness per trial.

:param evaluate: Callable taking (genome, task) in physical units and
    returning a finite scalar fitness to maximize.
:param genome_bounds: Ordered finite intervals for real genes.
:param task_bounds: Ordered finite intervals for continuous task parameters.
:param centroids: CVT centers in physical task units. Supply distinct points.
:param budget: Total attempts, including one seed per centroid.
:param seed: Seed for variation and task selection.
:param regression_probability: Probability of proposing by local regression.
:param tournament_sizes: Positive task sample sizes available to UCB1.
:returns: A ParametricTaskResult with the CVT archive and evaluation records.

The first proposal at each center samples a genome uniformly. Subsequent
evaluations draw tasks in the continuous domain. A regression fallback
applies SBX at the already selected task without crediting the tournament.
Each occupied cell keeps its highest recorded score. The incumbent wins ties.

Definition at line 178 of file parametric.py.