|
QDpy
|
Adapt a policy-evaluating callback to QDpy's numeric candidate contract. More...
Public Member Functions | |
| dimension (self) | |
| policy (self, genome) | |
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.
| qdpy.algorithms.hebbian_qd.HebbianEvaluator.dimension | ( | self | ) |
Return five times the total number of neurons.
Definition at line 140 of file hebbian_qd.py.
| 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.