ribs.archives

Archive implementations and associated utilities.

Archives

The archive is a data structure that stores solutions generated by the QD algorithm, along with any information relevant to solutions, such as objective and measure values. The archives in this subpackage are arranged in a one-layer hierarchy, with all archives inheriting from ArchiveBase.

ribs.archives.CategoricalArchive(*, ...[, ...])

An archive where each dimension is divided into categories.

ribs.archives.CVTArchive(*, solution_dim, ...)

An archive that tessellates the measure space with centroids.

ribs.archives.DensityArchive(*, measure_dim)

An archive that models the density of solutions in measure space.

ribs.archives.GridArchive(*, solution_dim, ...)

An archive that divides each dimension into uniformly-sized cells.

ribs.archives.ProximityArchive(*, ...[, ...])

An archive that adds new solutions based on novelty, where novelty is defined via proximity to other solutions in measure space.

ribs.archives.SlidingBoundariesArchive(*, ...)

An archive with a fixed number of sliding boundaries in each dimension.

ribs.archives.ArchiveBase(*, solution_dim, ...)

Base class for archives.

Utilities

This subpackage also contains several utilities associated with the archives.

ribs.archives.ArrayStore(field_desc, capacity)

Maintains a set of arrays that share a common dimension.

ribs.archives.AddStatus(value)

Semantic meaning for statuses returned by add().

ribs.archives.ArchiveDataFrame(*args, **kwargs)

A modified DataFrame for archive data.

ribs.archives.ArchiveStats(num_elites, ...)

Holds statistics about an archive.

ribs.archives.cqd_score(archive, *, ...[, ...])

Computes the CQD score of an archive.

ribs.archives.CQDScoreResult(iterations, ...)

Stores the result of running cqd_score().