|
QDpy
|
DEAP batch evolution, archive admission, and result dictionaries. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.deap.DEAPQDAlgorithm |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.deap.qdSimple (init_batch, toolbox, container, batch_size, niter, cxpb=0.0, mutpb=1.0, stats=None, halloffame=None, verbose=False, show_warnings=False, start_time=None, iteration_callback=None) | |
DEAP batch evolution, archive admission, and result dictionaries.
Definition in file deap.py.
| qdpy.algorithms.deap.qdSimple | ( | init_batch, | |
| toolbox, | |||
| container, | |||
| batch_size, | |||
| niter, | |||
| cxpb = 0.0, | |||
| mutpb = 1.0, | |||
| stats = None, | |||
| halloffame = None, | |||
| verbose = False, | |||
| show_warnings = False, | |||
| start_time = None, | |||
| iteration_callback = None ) |
Evaluate and vary a DEAP population with a QD container.
Evaluate invalid fitness entries and use the evaluator's first two
result elements as fitness and descriptors. Admit the initial batch,
then run ``niter`` generations of toolbox selection and DEAP variation.
A pre-evaluated batch can warm-start the search. Zero generations
returns the evaluated initial batch and its log.
:param init_batch: Nonempty initial candidate sequence.
:param toolbox: DEAP toolbox with applicable evaluator and operators.
:param container: QD container to receive each evaluated batch.
:param batch_size: Number of selected candidates per generation.
:param niter: Number of generations after the initial batch.
:param cxpb: Crossover probability for variation.
:param mutpb: Mutation probability for variation.
:param stats: Optional DEAP statistics collected over the archive.
:param halloffame: Optional DEAP hall of fame.
:param verbose: Print generation statistics.
:param show_warnings: Report archive validation warnings.
:param start_time: Start timestamp for initial elapsed-time accounting.
:param iteration_callback: Callback receiving iteration, evaluated
batch, container, and logbook.
:returns: Final evaluated batch and DEAP logbook.