QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.autoqd.OccupancyDescriptor Class Reference

Embed discounted state-action occupancy and project it into grid coordinates. More...

Public Member Functions

 embed (self, trajectories)
 Compute a policy's embedding using the complete weighted trajectories.
 transform (self, trajectories)
 Project trajectories to the same bounded coordinates as the archive.

Protected Member Functions

 _fitted (self, embeddings, fitness)

Detailed Description

Embed discounted state-action occupancy and project it into grid coordinates.

A seeded random-feature map and its current linear descriptor projection.

Each trajectory is a finite matrix with one state-action row per
transition. Input coordinates stay fixed across fits. The embedding
averages discounted Fourier features across complete trajectories.

:param trajectory_width: Number of numeric coordinates in each row.
:param descriptor_dim: Number of dimensions returned by transform().
:param embedding_dim: Number of random Fourier features.
:param bandwidth: Width of the Gaussian kernel in input units.
:param gamma: Discount in [0, 1).
:param seed: Seed for the random features and initial orthogonal projection.

Definition at line 26 of file autoqd.py.

Member Function Documentation

◆ _fitted()

qdpy.algorithms.autoqd.OccupancyDescriptor._fitted ( self,
embeddings,
fitness )
protected
Return a calibrated weighted PCA copy if the data can span the requested coordinates.

Definition at line 95 of file autoqd.py.

◆ embed()

qdpy.algorithms.autoqd.OccupancyDescriptor.embed ( self,
trajectories )

Compute a policy's embedding using the complete weighted trajectories.

Return the random Fourier feature vector before dimensionality reduction.

Definition at line 79 of file autoqd.py.

◆ transform()

qdpy.algorithms.autoqd.OccupancyDescriptor.transform ( self,
trajectories )

Project trajectories to the same bounded coordinates as the archive.

Return calibrated descriptors clipped to the grid limits.

Definition at line 84 of file autoqd.py.


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