|
QDpy
|
Search with feasible novelty and either violation or infeasible novelty. More...
Public Member Functions | |
| stats (self) | |
| feasible_population (self) | |
| infeasible_population (self) | |
| FeasibleNoveltyStats | run (self, evaluate, budget) |
| Spend an additional hard evaluator budget. | |
Search with feasible novelty and either violation or infeasible novelty.
Keep independent bounded populations and novelty histories.
FINS chooses feasible parents by novelty and infeasible parents by
low total positive violation. FI2NS uses novelty in both populations.
An offspring enters the pool appropriate to its measured constraints.
Only feasible measurements are offered to the independent native grid.
:param archive: Empty parentless best-only Grid or CVTGrid.
:param initializer: Callable (rng) returning an immutable genome sequence.
:param mutate: Callable (genome, rng) returning a new genome sequence.
:param mode: FINS or FI2NS, specified as "fins" or "fi2ns".
:param population_size: Capacity of each breeding population.
:param history_size: Number of distinct recent genomes per novelty history.
:param neighbors: Nearest-neighbor count for novelty.
:param feasible_parent_probability: Fraction of births allocated to feasible
breeders when both populations are available.
:param initial_samples: Number of initial proposals from initializer.
:param seed: Seed for variation, selection, and evaluation calls.
Definition at line 69 of file constrained_novelty.py.
| qdpy.algorithms.constrained_novelty.FeasibleInfeasibleNoveltySearch.feasible_population | ( | self | ) |
Return immutable active feasible genomes.
Definition at line 118 of file constrained_novelty.py.
| qdpy.algorithms.constrained_novelty.FeasibleInfeasibleNoveltySearch.infeasible_population | ( | self | ) |
Return immutable active infeasible genomes.
Definition at line 123 of file constrained_novelty.py.
| FeasibleNoveltyStats qdpy.algorithms.constrained_novelty.FeasibleInfeasibleNoveltySearch.run | ( | self, | |
| evaluate, | |||
| budget ) |
Spend an additional hard evaluator budget.
| evaluate | Callback (genome, seed) returning scalar fitness, descriptors, and residuals. |
| budget | Maximum number of additional attempted evaluations. |
Use residuals at or below zero for feasible admission and propagate invalid evaluations.
Definition at line 148 of file constrained_novelty.py.
| qdpy.algorithms.constrained_novelty.FeasibleInfeasibleNoveltySearch.stats | ( | self | ) |
Return cumulative measured search costs and outcomes.
Reimplemented in qdpy.algorithms.constrained_surprise.ConstrainedSurpriseSearch.
Definition at line 113 of file constrained_novelty.py.