QDpy
Loading...
Searching...
No Matches
qdpy.rl.gene_map_elites.GENEMAPElites Class Reference

Illuminate a policy archive by evolving coordinates for neurons. More...

Inheritance diagram for qdpy.rl.gene_map_elites.GENEMAPElites:
qdpy.rl.search.NeuralMAPElites

Public Member Functions

 policy_for (self, individual, *, device=None, seed=0)
 Decode an archived geometric genome to a portable dense policy.
Public Member Functions inherited from qdpy.rl.search.NeuralMAPElites
 stats (self)
 train (self, max_env_steps, *, evaluation_batch_size=1, budget_aware=False)
 Spend an additional hard step budget on policy search.
 best_policy (self, *, device=None, seed=0)
 Rebuild the best archived actor for inference or export.

Detailed Description

Illuminate a policy archive by evolving coordinates for neurons.

Store a GENE genome per elite and decode one dense actor per proposal.

Use the native neural MAP-Elites rollout budget and Iso+LineDD
variation. Deterministic continuous policies and categorical
policies use the usual Torch actor after decoding. The returned
policy can be exported through its standard save method.

:param env_factory: Callable returning a single Gymnasium environment.
:param archive: Empty best-only scalar Grid or CVTGrid maximizing fitness.
:param coordinate_size: Coordinates evolved per neuron.
:param initial_std: Standard deviation for new geometric genomes.
:param kwargs: Descriptor, actor architecture, and evaluation settings
    for :class:`NeuralMAPElites`.

Definition at line 17 of file gene_map_elites.py.

Member Function Documentation

◆ policy_for()

qdpy.rl.gene_map_elites.GENEMAPElites.policy_for ( self,
individual,
* ,
device = None,
seed = 0 )

Decode an archived geometric genome to a portable dense policy.

Parameters
individualArchived coordinates and biases or a matching gene vector.
deviceOptional Torch device override for the returned actor.
seedSeed for the returned actor's sampling stream.
Return an independent actor with the decoded parameters.

Reimplemented from qdpy.rl.search.NeuralMAPElites.

Definition at line 61 of file gene_map_elites.py.


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