QDpy
Loading...
Searching...
No Matches
dvd_es.py File Reference

Evolution strategies with joint, determinant-based behavioural diversity. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.dvd_es.DvDESMember
 A policy center with its own measured reward and embedding. More...
class  qdpy.algorithms.dvd_es.DvDESStats
 Cumulative calls, successful updates, and weighting choices. More...
class  qdpy.algorithms.dvd_es.DvDES
 Optimize multiple centers with local rewards and shared population volumes. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.dvd_es.behavior_logdet (embeddings, *, bandwidth=1., ridge=1e-6)
 Score the joint behavioural volume of a set of policies.

Detailed Description

Evolution strategies with joint, determinant-based behavioural diversity.

See also
https://papers.neurips.cc/paper_files/paper/2020/hash/d1dc3a8270a6f9394f88847d7f0050cf-Abstract.html

Definition in file dvd_es.py.

Function Documentation

◆ behavior_logdet()

qdpy.algorithms.dvd_es.behavior_logdet ( embeddings,
* ,
bandwidth = 1.,
ridge = 1e-6 )

Score the joint behavioural volume of a set of policies.

Parameters
embeddingsOne nonempty, finite embedding vector per policy.
bandwidthRBF length scale in embedding coordinates.
ridgeDiagonal stabilization added to the Gram matrix.
Returns
The natural logarithm of the regularized determinant.
Compute log(det(K + ridge I)) for an RBF kernel.

Definition at line 42 of file dvd_es.py.