QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.deep_qd.DeepQDArchive Class Reference

Read the configuration alternatives held by a DeepQD search. More...

Public Member Functions

 __len__ (self)
 __iter__ (self)
 __getitem__ (self, position)
 filled_bins (self)
 configuration_counts (self)
 mean_configurations (self)
 cell_elites (self, cell)
 Inspect alternatives in a native Grid or CVTGrid cell.
 configuration_grid (self, configuration)
 Materialize a configuration on the same descriptor geometry.

Detailed Description

Read the configuration alternatives held by a DeepQD search.

Index measurements by descriptor cell and configuration.

The cells contain one best feasible measurement per configuration.
Iteration and len() operate over all cell/configuration entries.
best_grid is the live native projection of the best entry in each
occupied cell. Obtain a separate native snapshot for a single
configuration with configuration_grid().

Definition at line 23 of file deep_qd.py.

Member Function Documentation

◆ __getitem__()

qdpy.algorithms.deep_qd.DeepQDArchive.__getitem__ ( self,
position )
Get a configuration elite by position in admission order.

Definition at line 47 of file deep_qd.py.

◆ __iter__()

qdpy.algorithms.deep_qd.DeepQDArchive.__iter__ ( self)
Iterate configuration elites in admission order.

Definition at line 43 of file deep_qd.py.

◆ __len__()

qdpy.algorithms.deep_qd.DeepQDArchive.__len__ ( self)
Count occupied cell/configuration pairs.

Definition at line 39 of file deep_qd.py.

◆ cell_elites()

qdpy.algorithms.deep_qd.DeepQDArchive.cell_elites ( self,
cell )

Inspect alternatives in a native Grid or CVTGrid cell.

Return a read-only map from configuration indices to the retained individuals.

Definition at line 71 of file deep_qd.py.

◆ configuration_counts()

qdpy.algorithms.deep_qd.DeepQDArchive.configuration_counts ( self)
Return occupied cell counts in the order of the declared configurations.

Definition at line 57 of file deep_qd.py.

◆ configuration_grid()

qdpy.algorithms.deep_qd.DeepQDArchive.configuration_grid ( self,
configuration )

Materialize a configuration on the same descriptor geometry.

Copy one layer by configuration index into an independent native grid.

Definition at line 76 of file deep_qd.py.

◆ filled_bins()

qdpy.algorithms.deep_qd.DeepQDArchive.filled_bins ( self)
Count cells with at least one feasible configuration elite.

Definition at line 52 of file deep_qd.py.

◆ mean_configurations()

qdpy.algorithms.deep_qd.DeepQDArchive.mean_configurations ( self)
Return mean retained configurations per occupied cell, or zero when empty.

Definition at line 66 of file deep_qd.py.


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