ribs.archives.ArchiveStats

namedtuple ribs.archives.ArchiveStats(num_elites: int, coverage: numpy.floating, qd_score: numpy.floating, obj_max: numpy.floating, obj_mean: numpy.floating)[source]

Holds statistics about an archive.

Attributes of type floating will match the dtype of their archive.

Fields
  1. num_elites (int) – Number of elites in the archive.

  2. coverage (floating) – Proportion of bins in the archive that have an elite - always in the range \([0,1]\).

  3. qd_score (floating) – QD score, i.e. sum of objective values of all elites in the archive. This score only makes sense if objective values are non-negative.

  4. obj_max (floating) – Maximum objective value of the elites in the archive. None if there are no elites in the archive.

  5. obj_mean (floating) – Mean objective value of the elites in the archive. None if there are no elites in the archive.

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.