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 to Elite for the non-batched version of this class.

  1. solution_batch (ndarray) – Batch of solutions – shape (batch, solution_dim)

  2. objective_batch (ndarray) – Batch of objectives – shape (batch,)

  3. measures_batch (ndarray) – Batch of measures – shape (batch, measure_dim)

  4. index_batch (ndarray) – Batch of indices – shape (batch,)

  5. 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.