EvoStrategy

class robustcheck.types.EvoStrategy.EvoStrategy[source]

Abstract class for evolutionary search strategies

This is an abstract class that provides a template for standard evolutionary search strategies through common functionality related to retrieving and generating new generations, computing fitness, and retrieving the fittest individuals

generation_count

An integer count of the generations created so far.

active_generation

A list of individuals of the same data type representing the most recent generation created by the evolutionary search strategy.

fitness_scores

A list of floats representing the fitness scores of each individual in the current active generation.

queries

An integer representing all individuals explored so far by the evolutionary search strategy, i.e. the sum of all generation sizes so far.

get_best_candidate()[source]

Retrieves the fittest individual from the active generation.