SYMBOL INDEX (367 symbols across 46 files) FILE: doc/conf.py function setup (line 183) | def setup(app): FILE: evol/conditions.py class Condition (line 10) | class Condition: method __init__ (line 18) | def __init__(self, condition: Optional[Callable[['BasePopulation'], bo... method __enter__ (line 21) | def __enter__(self): method __exit__ (line 25) | def __exit__(self, exc_type, exc_val, exc_tb): method __call__ (line 28) | def __call__(self, population: 'BasePopulation') -> None: method check (line 33) | def check(cls, population: 'BasePopulation'): class MinimumProgress (line 38) | class MinimumProgress(Condition): method __init__ (line 49) | def __init__(self, window: int, change: float = 0): method __call__ (line 55) | def __call__(self, population: 'BasePopulation') -> None: class TimeLimit (line 62) | class TimeLimit(Condition): method __init__ (line 73) | def __init__(self, seconds: float): method __call__ (line 78) | def __call__(self, population: 'BasePopulation'): FILE: evol/evolution.py class Evolution (line 18) | class Evolution: method __init__ (line 21) | def __init__(self): method __copy__ (line 24) | def __copy__(self) -> 'Evolution': method __iter__ (line 29) | def __iter__(self) -> Iterator[EvolutionStep]: method __repr__ (line 32) | def __repr__(self) -> str: method evaluate (line 39) | def evaluate(self, lazy: bool = False, name: Optional[str] = None) -> ... method checkpoint (line 54) | def checkpoint(self, method map (line 70) | def map(self, func: Callable[..., Individual], name: Optional[str] = N... method filter (line 83) | def filter(self, func: Callable[..., bool], name: Optional[str] = None... method survive (line 95) | def survive(self, method breed (line 122) | def breed(self, method mutate (line 147) | def mutate(self, method repeat (line 174) | def repeat(self, evolution: 'Evolution', n: int = 1, name: Optional[st... method callback (line 195) | def callback(self, callback_function: Callable[..., Any], method _add_step (line 212) | def _add_step(self, step: EvolutionStep) -> 'Evolution': FILE: evol/exceptions.py class PopulationIsNotEvaluatedException (line 1) | class PopulationIsNotEvaluatedException(RuntimeError): class StopEvolution (line 5) | class StopEvolution(Exception): FILE: evol/helpers/combiners/permutation.py function order_one_crossover (line 9) | def order_one_crossover(parent_1: Tuple, parent_2: Tuple) -> Tuple: function edge_recombination (line 24) | def edge_recombination(*parents: Tuple) -> Tuple: function cycle_crossover (line 38) | def cycle_crossover(parent_1: Tuple, parent_2: Tuple) -> Tuple[Tuple[Any... FILE: evol/helpers/combiners/utils.py function construct_neighbors (line 8) | def construct_neighbors(*chromosome: Tuple[Any]) -> defaultdict: function _neighbors_in (line 17) | def _neighbors_in(x: Tuple[Any], cyclic=True) -> Iterable[Tuple[Any, Any]]: function _remove_from_neighbors (line 23) | def _remove_from_neighbors(neighbors, node): function select_node (line 29) | def select_node(start_node: Any, neighbors: defaultdict) -> Generator[An... function identify_cycles (line 43) | def identify_cycles(chromosome_1: Tuple[Any], chromosome_2: Tuple[Any]) ... function _identify_cycle (line 63) | def _identify_cycle(chromosome_1: Tuple[Any], chromosome_2: Tuple[Any], ... function cycle_parity (line 84) | def cycle_parity(cycles: List[Set[int]]) -> Dict[int, bool]: FILE: evol/helpers/groups.py function group_duplicate (line 18) | def group_duplicate(individuals: List[Individual], n_groups: int = 4) ->... function group_random (line 29) | def group_random(individuals: List[Individual], n_groups: int = 4) -> Li... function group_stratified (line 42) | def group_stratified(individuals: List[Individual], n_groups: int = 4) -... function _ensure_evaluated (line 61) | def _ensure_evaluated(individuals: List[Individual]): FILE: evol/helpers/mutators/permutation.py function inversion (line 7) | def inversion(chromosome: Tuple[Any, ...], min_size: int = 2, max_size: ... function swap_elements (line 21) | def swap_elements(chromosome: Tuple[Any, ...]) -> Tuple[Any, ...]: FILE: evol/helpers/pickers.py function pick_random (line 8) | def pick_random(parents: Sequence[Individual], n_parents: int = 2) -> Tu... FILE: evol/helpers/utils.py function select_partition (line 5) | def select_partition(length: int, min_size: int = 1, max_size: int = Non... function rotating_window (line 18) | def rotating_window(arr): function sliding_window (line 24) | def sliding_window(arr): FILE: evol/individual.py class Individual (line 13) | class Individual: method __init__ (line 21) | def __init__(self, chromosome: Any, fitness: Optional[float] = None): method __repr__ (line 27) | def __repr__(self): method from_dict (line 31) | def from_dict(cls, data: dict) -> 'Individual': method __post_evaluate (line 42) | def __post_evaluate(self, result): method evaluate (line 45) | def evaluate(self, eval_function: Callable[..., float], lazy: bool = F... method mutate (line 54) | def mutate(self, mutate_function: Callable[..., Any], probability: flo... FILE: evol/logger.py class BaseLogger (line 18) | class BaseLogger: method __init__ (line 25) | def __init__(self, target=None, stdout=False, fmt='%(asctime)s,%(messa... method check_population (line 46) | def check_population(population: BasePopulation) -> None: method log (line 50) | def log(self, population, **kwargs): class SummaryLogger (line 64) | class SummaryLogger(BaseLogger): method log (line 70) | def log(self, population, **kwargs): class MultiLogger (line 79) | class MultiLogger: method __init__ (line 88) | def __init__(self, file_individuals, file_population): method log (line 92) | def log(self, population, **kwargs): method handle (line 109) | def handle(self, ind_generator, dict_to_log): FILE: evol/population.py class BasePopulation (line 28) | class BasePopulation(metaclass=ABCMeta): method __init__ (line 30) | def __init__(self, method __iter__ (line 50) | def __iter__(self) -> Iterator[Individual]: method __getitem__ (line 53) | def __getitem__(self, i) -> Individual: method __len__ (line 56) | def __len__(self): method __repr__ (line 59) | def __repr__(self): method current_best (line 63) | def current_best(self) -> Individual: method current_worst (line 69) | def current_worst(self) -> Individual: method chromosomes (line 75) | def chromosomes(self) -> Generator[Any, None, None]: method is_evaluated (line 80) | def is_evaluated(self) -> bool: method generate (line 84) | def generate(cls, method load (line 100) | def load(cls, method checkpoint (line 115) | def checkpoint(self, target: Optional[str] = None, method: str = 'pick... method _individual_weights (line 128) | def _individual_weights(self): method evolve (line 141) | def evolve(self, evolution: 'Evolution', n: int = 1) -> 'BasePopulatio... method evaluate (line 159) | def evaluate(self, lazy: bool = False) -> 'BasePopulation': method breed (line 162) | def breed(self, method mutate (line 192) | def mutate(self, method map (line 216) | def map(self, func: Callable[..., Individual], **kwargs) -> 'BasePopul... method filter (line 227) | def filter(self, func: Callable[..., bool], **kwargs) -> 'BasePopulati... method survive (line 240) | def survive(self, fraction: Optional[float] = None, method callback (line 276) | def callback(self, callback_function: Callable[..., None], method group (line 289) | def group(self, grouping_function: Callable[..., List[List[int]]] = gr... method combine (line 316) | def combine(cls, *populations: 'BasePopulation', method _subset (line 341) | def _subset(self, index: List[int], subset_id: str) -> 'BasePopulation': method _update_documented_best (line 352) | def _update_documented_best(self): class Population (line 361) | class Population(BasePopulation): method __init__ (line 381) | def __init__(self, method __copy__ (line 399) | def __copy__(self): method evaluate (line 414) | def evaluate(self, lazy: bool = False) -> 'Population': class Contest (line 438) | class Contest: method __init__ (line 449) | def __init__(self, competitors: Iterable[Individual]): method assign_scores (line 452) | def assign_scores(self, scores: Sequence[float]) -> None: method competitor_chromosomes (line 457) | def competitor_chromosomes(self): method generate (line 461) | def generate(cls, individuals: Sequence[Individual], class ContestPopulation (line 482) | class ContestPopulation(BasePopulation): method __init__ (line 523) | def __init__(self, method __copy__ (line 545) | def __copy__(self): method evaluate (line 562) | def evaluate(self, method map (line 613) | def map(self, func: Callable[..., Individual], **kwargs) -> 'ContestPo... method filter (line 627) | def filter(self, func: Callable[..., bool], **kwargs) -> 'ContestPopul... method survive (line 642) | def survive(self, method reset_fitness (line 664) | def reset_fitness(self): FILE: evol/problems/functions/variableinput.py class FunctionProblem (line 8) | class FunctionProblem(Problem): method __init__ (line 9) | def __init__(self, size=2): method check_solution (line 12) | def check_solution(self, solution: Sequence[float]) -> Sequence[float]: method value (line 18) | def value(self, solution): method eval_function (line 21) | def eval_function(self, solution: Sequence[float]) -> float: class Sphere (line 26) | class Sphere(FunctionProblem): method value (line 27) | def value(self, solution: Sequence[float]) -> float: class Rosenbrock (line 36) | class Rosenbrock(FunctionProblem): method value (line 37) | def value(self, solution: Sequence[float]) -> float: class Rastrigin (line 49) | class Rastrigin(FunctionProblem): method value (line 50) | def value(self, solution: Sequence[float]) -> float: FILE: evol/problems/problem.py class Problem (line 4) | class Problem(metaclass=ABCMeta): method eval_function (line 7) | def eval_function(self, solution): FILE: evol/problems/routing/magicsanta.py class MagicSanta (line 10) | class MagicSanta(Problem): method __init__ (line 11) | def __init__(self, city_coordinates, home_coordinate, gift_weight=None... method distance (line 28) | def distance(coord_a, coord_b): method check_solution (line 31) | def check_solution(self, solution: List[List[int]]): method eval_function (line 48) | def eval_function(self, solution: List[List[int]]) -> Union[float, int]: FILE: evol/problems/routing/tsp.py class TSPProblem (line 8) | class TSPProblem(Problem): method __init__ (line 9) | def __init__(self, distance_matrix): method from_coordinates (line 13) | def from_coordinates(cls, coordinates: List[Union[tuple, list]]) -> 'T... method check_solution (line 27) | def check_solution(self, solution: List[int]): method eval_function (line 40) | def eval_function(self, solution: List[int]) -> Union[float, int]: FILE: evol/serialization.py class SimpleSerializer (line 19) | class SimpleSerializer: method __init__ (line 26) | def __init__(self, target: Optional[str] = None): method checkpoint (line 29) | def checkpoint(self, individuals: List[Individual], target: Optional[s... method load (line 48) | def load(self, target: Optional[str] = None) -> List[Individual]: method _new_checkpoint_file (line 66) | def _new_checkpoint_file(target: str, method: str): method _find_checkpoint (line 78) | def _find_checkpoint(cls, target: str): method _has_valid_extension (line 93) | def _has_valid_extension(filename: str): FILE: evol/step.py class EvolutionStep (line 10) | class EvolutionStep(metaclass=ABCMeta): method __init__ (line 12) | def __init__(self, name: Optional[str], **kwargs): method __repr__ (line 16) | def __repr__(self): method apply (line 20) | def apply(self, population: BasePopulation) -> BasePopulation: class EvaluationStep (line 24) | class EvaluationStep(EvolutionStep): method apply (line 26) | def apply(self, population: BasePopulation) -> BasePopulation: class CheckpointStep (line 30) | class CheckpointStep(EvolutionStep): method __init__ (line 32) | def __init__(self, name, every=1, **kwargs): method apply (line 37) | def apply(self, population: BasePopulation) -> BasePopulation: class MapStep (line 45) | class MapStep(EvolutionStep): method apply (line 47) | def apply(self, population: BasePopulation) -> BasePopulation: class FilterStep (line 51) | class FilterStep(EvolutionStep): method apply (line 53) | def apply(self, population: BasePopulation) -> BasePopulation: class SurviveStep (line 57) | class SurviveStep(EvolutionStep): method apply (line 59) | def apply(self, population: BasePopulation) -> BasePopulation: class BreedStep (line 63) | class BreedStep(EvolutionStep): method apply (line 65) | def apply(self, population: BasePopulation) -> BasePopulation: class MutateStep (line 69) | class MutateStep(EvolutionStep): method apply (line 71) | def apply(self, population: BasePopulation) -> BasePopulation: class RepeatStep (line 75) | class RepeatStep(EvolutionStep): method __init__ (line 77) | def __init__(self, name: str, evolution: 'Evolution', n: int, method apply (line 84) | def apply(self, population: BasePopulation) -> BasePopulation: method _apply_grouped (line 92) | def _apply_grouped(self, population: BasePopulation) -> BasePopulation: method __repr__ (line 100) | def __repr__(self): class CallbackStep (line 106) | class CallbackStep(EvolutionStep): method __init__ (line 107) | def __init__(self, name, every: int = 1, **kwargs): method apply (line 112) | def apply(self, population: BasePopulation) -> BasePopulation: FILE: evol/utils.py function offspring_generator (line 7) | def offspring_generator(parents: List[Individual], function select_arguments (line 42) | def select_arguments(func: Callable) -> Callable: FILE: examples/number_of_parents.py function run_evolutionary (line 15) | def run_evolutionary(opt_value=1, population_size=100, n_parents=2, work... FILE: examples/population_demo.py function create_candidate (line 5) | def create_candidate(): function func_to_optimise (line 9) | def func_to_optimise(x): function pick_random_parents (line 13) | def pick_random_parents(pop): function produce_clone (line 37) | def produce_clone(parent): function add_noise (line 41) | def add_noise(x): FILE: examples/rock_paper_scissors.py class RockPaperScissorsPlayer (line 13) | class RockPaperScissorsPlayer: method __init__ (line 17) | def __init__(self, preference=None): method __repr__ (line 20) | def __repr__(self): method play (line 23) | def play(self): method mutate (line 29) | def mutate(self, volatility=0.1): method combine (line 35) | def combine(self, other): class RockPaperScissorsLizardSpockPlayer (line 39) | class RockPaperScissorsLizardSpockPlayer(RockPaperScissorsPlayer): function evaluate (line 57) | def evaluate(player_1: RockPaperScissorsPlayer, player_2: RockPaperSciss... class History (line 67) | class History: method __init__ (line 69) | def __init__(self): method log (line 72) | def log(self, population: ContestPopulation): method plot (line 78) | def plot(self): function run_rock_paper_scissors (line 101) | def run_rock_paper_scissors(population_size: int = 100, function parse_arguments (line 138) | def parse_arguments(): FILE: examples/simple_callback.py function random_start (line 9) | def random_start(): function func_to_optimise (line 16) | def func_to_optimise(xy): function pick_random_parents (line 24) | def pick_random_parents(pop): function make_child (line 33) | def make_child(mom, dad): function add_noise (line 43) | def add_noise(chromosome, sigma): class MyLogger (line 52) | class MyLogger(): method __init__ (line 53) | def __init__(self): method log (line 56) | def log(self, pop): FILE: examples/simple_logging.py function random_start (line 13) | def random_start(): function func_to_optimise (line 20) | def func_to_optimise(xy): function pick_random_parents (line 28) | def pick_random_parents(pop): function make_child (line 37) | def make_child(mom, dad): function add_noise (line 47) | def add_noise(chromosome, sigma): FILE: examples/simple_nonlinear.py function random_start (line 8) | def random_start(): function func_to_optimise (line 15) | def func_to_optimise(xy): function pick_random_parents (line 23) | def pick_random_parents(pop): function make_child (line 32) | def make_child(mom, dad): function add_noise (line 44) | def add_noise(chromosome, sigma): FILE: examples/travelling_salesman.py function run_travelling_salesman (line 14) | def run_travelling_salesman(population_size: int = 100, function parse_arguments (line 65) | def parse_arguments(): FILE: examples/very_basic_tsp.py function run_evolutionary (line 17) | def run_evolutionary(num_towns=42, population_size=100, num_iter=200, se... FILE: setup.py function load_readme (line 7) | def load_readme(): function read (line 16) | def read(*parts): function find_version (line 21) | def find_version(*file_paths): FILE: tests/conftest.py function simple_chromosomes (line 10) | def simple_chromosomes(): function shuffled_chromosomes (line 15) | def shuffled_chromosomes(): function simple_individuals (line 23) | def simple_individuals(simple_chromosomes): function simple_evaluation_function (line 31) | def simple_evaluation_function(): function evaluated_individuals (line 38) | def evaluated_individuals(simple_chromosomes, simple_evaluation_function): function simple_contest_evaluation_function (line 46) | def simple_contest_evaluation_function(): function simple_evolution (line 53) | def simple_evolution(): function simple_population (line 63) | def simple_population(simple_chromosomes, simple_evaluation_function): function simple_contestpopulation (line 68) | def simple_contestpopulation(simple_chromosomes, simple_contest_evaluati... function any_population (line 74) | def any_population(request, simple_population, simple_contestpopulation): FILE: tests/helpers/combiners/test_permutation_combiners.py function test_order_one_crossover_int (line 6) | def test_order_one_crossover_int(): function test_order_one_crossover_str (line 13) | def test_order_one_crossover_str(): function test_cycle_crossover_int (line 20) | def test_cycle_crossover_int(): function test_cycle_crossover_str (line 26) | def test_cycle_crossover_str(): FILE: tests/helpers/mutators/test_permutation_mutators.py function test_inversion_int (line 6) | def test_inversion_int(): function test_inversion_str (line 13) | def test_inversion_str(): function test_swap_elements_int (line 20) | def test_swap_elements_int(): function test_swap_elements_str (line 27) | def test_swap_elements_str(): FILE: tests/helpers/test_groups.py function test_group_duplicate (line 10) | def test_group_duplicate(simple_individuals, n_groups): function test_group_random (line 17) | def test_group_random(simple_individuals): class TestGroupStratified (line 26) | class TestGroupStratified: method test_unique (line 28) | def test_unique(self, evaluated_individuals): method test_is_stratified (line 33) | def test_is_stratified(self, shuffled_chromosomes, n_groups): method test_is_nearly_stratified (line 40) | def test_is_nearly_stratified(self, shuffled_chromosomes, n_groups): method test_must_be_evaluated (line 47) | def test_must_be_evaluated(self, simple_population): FILE: tests/helpers/test_helpers_utils.py function test_sliding_window (line 4) | def test_sliding_window(): function test_rotating_window (line 8) | def test_rotating_window(): FILE: tests/problems/test_functions.py function test_rosenbrock_optimality (line 4) | def test_rosenbrock_optimality(): function test_sphere_optimality (line 11) | def test_sphere_optimality(): function test_rastrigin_optimality (line 18) | def test_rastrigin_optimality(): FILE: tests/problems/test_santa.py function base_problem (line 9) | def base_problem(): function adv_problem (line 16) | def adv_problem(): function test_error_raised_wrong_cities (line 23) | def test_error_raised_wrong_cities(base_problem): function test_base_score_method (line 38) | def test_base_score_method(base_problem): function test_sleight_gift_weights (line 47) | def test_sleight_gift_weights(adv_problem): function test_multiple_routes (line 52) | def test_multiple_routes(adv_problem): FILE: tests/problems/test_tsp.py function test_distance_func (line 7) | def test_distance_func(): function test_score_method (line 17) | def test_score_method(): function test_score_method_can_error (line 23) | def test_score_method_can_error(): function test_can_initialize_our_datasets (line 41) | def test_can_initialize_our_datasets(): FILE: tests/test_callback.py class PopCounter (line 5) | class PopCounter: method __init__ (line 6) | def __init__(self): method add (line 10) | def add(self, pop): class TestPopulationSimple (line 16) | class TestPopulationSimple: method test_simple_counter_works (line 17) | def test_simple_counter_works(self, simple_chromosomes, simple_evaluat... method test_simple_counter_works_every (line 33) | def test_simple_counter_works_every(self, simple_chromosomes, simple_e... method test_is_evaluated (line 46) | def test_is_evaluated(self, simple_population): method test_stop (line 53) | def test_stop(self, simple_population, simple_evolution): FILE: tests/test_conditions.py class TestCondition (line 10) | class TestCondition: method test_context (line 12) | def test_context(self): method test_check (line 19) | def test_check(self, simple_population): method test_evolve (line 25) | def test_evolve(self, simple_population, simple_evolution): method test_sequential (line 30) | def test_sequential(self, simple_population, simple_evolution): class TestMinimumProgress (line 39) | class TestMinimumProgress: method test_evolve (line 41) | def test_evolve(self, simple_evolution): class TestTimeLimit (line 49) | class TestTimeLimit: method test_evolve (line 51) | def test_evolve(self, simple_population, simple_evolution): FILE: tests/test_evolution.py class TestEvolution (line 8) | class TestEvolution: method test_add_step (line 10) | def test_add_step(self): method test_repr (line 17) | def test_repr(self): class TestPopulationEvolve (line 25) | class TestPopulationEvolve: method test_repeat_step (line 27) | def test_repeat_step(self): method test_repeat_step_grouped (line 35) | def test_repeat_step_grouped(self, n_groups, grouping_function): FILE: tests/test_examples.py function test_number_of_parents (line 15) | def test_number_of_parents(concurrent_workers): function test_rock_paper_scissors (line 20) | def test_rock_paper_scissors(grouped): function test_travelling_salesman (line 27) | def test_travelling_salesman(n_groups): FILE: tests/test_individual.py class TestIndividual (line 6) | class TestIndividual: method test_init (line 8) | def test_init(self): method test_copy (line 14) | def test_copy(self): method test_evaluate (line 24) | def test_evaluate(self): method test_mutate (line 40) | def test_mutate(self): FILE: tests/test_logging.py class TestLoggerSimple (line 8) | class TestLoggerSimple: method test_baselogger_write_file_no_stdout (line 10) | def test_baselogger_write_file_no_stdout(self, tmpdir, capsys, simple_... method test_baselogger_can_write_to_stdout (line 27) | def test_baselogger_can_write_to_stdout(self, capsys, simple_chromosom... method test_baselogger_can_accept_kwargs (line 37) | def test_baselogger_can_accept_kwargs(self, tmpdir, simple_chromosomes... method test_baselogger_works_via_evolution_callback (line 53) | def test_baselogger_works_via_evolution_callback(self, tmpdir, capsys): method test_summarylogger_write_file_mo_stdout (line 76) | def test_summarylogger_write_file_mo_stdout(self, tmpdir, capsys): method test_summarylogger_can_write_to_stdout (line 93) | def test_summarylogger_can_write_to_stdout(self, capsys, simple_chromo... method test_summary_logger_can_accept_kwargs (line 103) | def test_summary_logger_can_accept_kwargs(self, tmpdir, simple_chromos... method test_summarylogger_works_via_evolution (line 129) | def test_summarylogger_works_via_evolution(self, tmpdir, capsys): method test_two_populations_can_use_same_logger (line 153) | def test_two_populations_can_use_same_logger(self, tmpdir, capsys): method test_every_mechanic_in_evolution_log (line 180) | def test_every_mechanic_in_evolution_log(self, tmpdir, capsys): FILE: tests/test_population.py class TestPopulationSimple (line 14) | class TestPopulationSimple: method test_filter_works (line 16) | def test_filter_works(self, simple_chromosomes, simple_evaluation_func... method test_population_init (line 20) | def test_population_init(self, simple_chromosomes): method test_population_generate (line 25) | def test_population_generate(self, simple_evaluation_function): method test_is_evaluated (line 34) | def test_is_evaluated(self, any_population): class TestPopulationCopy (line 39) | class TestPopulationCopy: method test_population_copy (line 41) | def test_population_copy(self, any_population): method test_population_is_evaluated (line 47) | def test_population_is_evaluated(self, any_population): class TestPopulationEvaluate (line 54) | class TestPopulationEvaluate: method test_individuals_are_not_initially_evaluated (line 59) | def test_individuals_are_not_initially_evaluated(self, any_population): method test_evaluate_lambda (line 62) | def test_evaluate_lambda(self, simple_chromosomes): method test_evaluate_func (line 83) | def test_evaluate_func(self, simple_chromosomes): method test_evaluate_lazy (line 105) | def test_evaluate_lazy(self, any_population): class TestPopulationSurvive (line 118) | class TestPopulationSurvive: method test_survive_n_works (line 120) | def test_survive_n_works(self, simple_chromosomes, simple_evaluation_f... method test_survive_p_works (line 128) | def test_survive_p_works(self, simple_chromosomes, simple_evaluation_f... method test_survive_n_and_p_works (line 136) | def test_survive_n_and_p_works(self, simple_evaluation_function): method test_breed_increases_generation (line 145) | def test_breed_increases_generation(self, any_population): method test_survive_throws_correct_errors (line 148) | def test_survive_throws_correct_errors(self, any_population): class TestPopulationBreed (line 158) | class TestPopulationBreed: method test_breed_amount_works (line 160) | def test_breed_amount_works(self, simple_chromosomes, simple_evaluatio... method test_breed_works_with_kwargs (line 173) | def test_breed_works_with_kwargs(self, simple_chromosomes, simple_eval... method test_breed_raises_with_multiple_values_for_kwarg (line 186) | def test_breed_raises_with_multiple_values_for_kwarg(self, simple_popu... class TestPopulationMutate (line 200) | class TestPopulationMutate: method test_mutate_lambda (line 202) | def test_mutate_lambda(self): method test_mutate_inplace (line 208) | def test_mutate_inplace(self): method test_mutate_func (line 214) | def test_mutate_func(self): method test_mutate_probability (line 223) | def test_mutate_probability(self): method test_mutate_zero_probability (line 232) | def test_mutate_zero_probability(self): method test_mutate_func_kwargs (line 237) | def test_mutate_func_kwargs(self): method test_mutate_elitist (line 244) | def test_mutate_elitist(self): class TestPopulationWeights (line 251) | class TestPopulationWeights: method test_weights (line 253) | def test_weights(self, simple_chromosomes, simple_evaluation_function): class TestPopulationBest (line 268) | class TestPopulationBest: method test_current_best (line 270) | def test_current_best(self, simple_chromosomes): method test_current_worst (line 277) | def test_current_worst(self, simple_chromosomes): method test_mutate_resets (line 284) | def test_mutate_resets(self): method test_documented_best (line 292) | def test_documented_best(self): class TestPopulationIslands (line 301) | class TestPopulationIslands: method test_groups (line 304) | def test_groups(self, simple_population, n_groups): method test_no_groups (line 310) | def test_no_groups(self, simple_population): method test_empty_group (line 314) | def test_empty_group(self, simple_population): method test_invalid_group (line 326) | def test_invalid_group(self, simple_population, result, error): method test_not_evaluated (line 333) | def test_not_evaluated(self, simple_population): method test_combine (line 337) | def test_combine(self, simple_population): method test_combine_nothing (line 342) | def test_combine_nothing(self): class TestContest (line 347) | class TestContest: method test_assign_score (line 349) | def test_assign_score(self, simple_individuals): method test_generate_n_contests (line 356) | def test_generate_n_contests(self, simple_individuals, individuals_per... class TestContestPopulation (line 370) | class TestContestPopulation: method test_init (line 372) | def test_init(self): class TestContestPopulationBest (line 378) | class TestContestPopulationBest: method test_no_documented (line 380) | def test_no_documented(self): FILE: tests/test_serialization.py class TestPickleCheckpoint (line 8) | class TestPickleCheckpoint: method test_checkpoint (line 13) | def test_checkpoint(self, tmpdir, simple_population): method test_unserializable_chromosome (line 19) | def test_unserializable_chromosome(self, tmpdir): method test_load (line 30) | def test_load(self, tmpdir, simple_population): method test_load_invalid_target (line 37) | def test_load_invalid_target(self, tmpdir): method test_checkpoint_invalid_target (line 48) | def test_checkpoint_invalid_target(self, tmpdir, simple_population): method test_override_default_path (line 58) | def test_override_default_path(self, tmpdir, simple_chromosomes, simpl... method test_evolution (line 76) | def test_evolution(self, tmpdir, simple_population): method test_every (line 82) | def test_every(self, tmpdir, simple_population): class TestJsonCheckpoint (line 91) | class TestJsonCheckpoint(TestPickleCheckpoint): FILE: tests/test_utils.py class TestOffspringGenerator (line 8) | class TestOffspringGenerator: method test_simple_combiner (line 10) | def test_simple_combiner(self, simple_population: Population): method test_args (line 20) | def test_args(self, n_parents: int, simple_population: Population): method test_simple_picker (line 30) | def test_simple_picker(self, simple_population: Population): method test_multiple_offspring (line 41) | def test_multiple_offspring(self, simple_population: Population): class TestSelectArguments (line 53) | class TestSelectArguments: method test_no_kwargs (line 56) | def test_no_kwargs(self, args, kwargs, result): method test_with_kwargs (line 63) | def test_with_kwargs(self, args, kwargs, result): method test_all_kwargs (line 70) | def test_all_kwargs(self, args, kwargs, result):