ribs.archives.EliteBatch¶
- namedtuple ribs.archives.EliteBatch(solution_batch: numpy.ndarray, objective_batch: numpy.ndarray, measures_batch: numpy.ndarray, index_batch: numpy.ndarray, metadata_batch: numpy.ndarray)[source]¶
Represents a batch of elites.
Each field is an array with dimensions
(batch, ...)
. Refer toElite
for the non-batched version of this class.- Fields
solution_batch (
ndarray
) – Batch of solutions – shape(batch, solution_dim)
objective_batch (
ndarray
) – Batch of objectives – shape(batch,)
measures_batch (
ndarray
) – Batch of measures – shape(batch, measure_dim)
index_batch (
ndarray
) – Batch of indices – shape(batch,)
metadata_batch (
ndarray
) – Batch of metadata – shape(batch,)
- count(value, /)¶
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.