QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.hebbian_qd.HebbianEvaluator Class Reference

Adapt a policy-evaluating callback to QDpy's numeric candidate contract. More...

Public Member Functions

 dimension (self)
 policy (self, genome)

Detailed Description

Adapt a policy-evaluating callback to QDpy's numeric candidate contract.

Use this callable with a native optimizer such as CMA-ME or CMA-MAE.

The supplied rollout function receives a HebbianPolicy. It returns
objective values and descriptors in the optimizer's normal format.
Start a fresh session for each episode in your evaluator.

Definition at line 123 of file hebbian_qd.py.

Member Function Documentation

◆ dimension()

qdpy.algorithms.hebbian_qd.HebbianEvaluator.dimension ( self)
Return five times the total number of neurons.

Definition at line 140 of file hebbian_qd.py.

◆ policy()

qdpy.algorithms.hebbian_qd.HebbianEvaluator.policy ( self,
genome )
Decode a measured genome into an immutable deployable policy.

Definition at line 144 of file hebbian_qd.py.


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