QDpy
Loading...
Searching...
No Matches
qdpy.legacy.MapElites Class Reference

MAP-Elites ########### {{{1. More...

Inheritance diagram for qdpy.legacy.MapElites:
qdpy.legacy.CVTMapElites

Public Member Functions

 reinit (self)
 run (self, initBatch=None, nbIterations=None, disableLogs=False, prefixLogs="#")
 runAsync (self, initBatch=None)
 generateOutputDict (self)
 save (self, outputFile)

Detailed Description

MAP-Elites ########### {{{1.

Run the original maximising MAP-Elites API with explicit array storage.

An evaluator receives a genome and evaluation ID, then returns
fitness followed by the descriptor coordinates. The algorithm uses
fitter entries to replace cell incumbents and exposes arrays of
performances and features plus a mapping of retained solutions.

The native ask/tell API uses separate algorithms and containers. Use
the legacy result keys when working with this implementation.

Definition at line 111 of file legacy.py.

Member Function Documentation

◆ generateOutputDict()

qdpy.legacy.MapElites.generateOutputDict ( self)
Collect the legacy arrays, solution mapping, settings, and supplied metadata.

Reimplemented in qdpy.legacy.CVTMapElites.

Definition at line 462 of file legacy.py.

◆ reinit()

qdpy.legacy.MapElites.reinit ( self)
Start a fresh legacy run with an empty archive, evaluation counters, and its configured executor.

Reimplemented in qdpy.legacy.CVTMapElites.

Definition at line 176 of file legacy.py.

◆ run()

qdpy.legacy.MapElites.run ( self,
initBatch = None,
nbIterations = None,
disableLogs = False,
prefixLogs = "#" )
Evaluate the initial batch, evolve through the iterations, and return the best genome and fitness.

Definition at line 396 of file legacy.py.

◆ runAsync()

qdpy.legacy.MapElites.runAsync ( self,
initBatch = None )
Dispatch legacy evaluation through its asynchronous path and return the best result.

Definition at line 442 of file legacy.py.

◆ save()

qdpy.legacy.MapElites.save ( self,
outputFile )
Write the legacy result dictionary to a pickle file.

Definition at line 483 of file legacy.py.


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