culebra.trainer module

Implementation of some trainers.

This module is composed by:

  • The abc module, which defines some abstract base classes to implement several types of trainers.

  • The aco module, which supports several ant colony optimization approaches.

  • The ea module, which implements several evolutionary algorithms-based trainers.

  • The topology sub-module, which provides several topologies for distributed trainers.

Attributes

DEFAULT_CHECKPOINT_ACTIVATION = True

Default checkpointing activation for a CentralizedTrainer.

DEFAULT_CHECKPOINT_BASENAME = 'checkpoint'

Default basename for checkpointing files.

DEFAULT_CHECKPOINT_FREQ = 10

Default checkpointing frequency for a CentralizedTrainer.

DEFAULT_COOPERATIVE_TOPOLOGY_FUNC = <function :func:`culebra.trainer.topology.full_connected_destinations`>

Default topology function for the cooperative model.

DEFAULT_ISLANDS_TOPOLOGY_FUNC = <function :func:`culebra.trainer.topology.ring_destinations`>

Default topology function for the islands model.

DEFAULT_MAX_NUM_ITERS = 100

Default maximum number of iterations.

DEFAULT_NUM_REPRESENTATIVES = 5

Default value for the number of representatives selected.

DEFAULT_REPRESENTATIVES_EXCHANGE_FREQ = 10

Default value for the number of iterations between representatives sending.

DEFAULT_REPRESENTATIVES_SELECTION_FUNC = :func:`functools.partial`(<function :func:`deap.tools.selection.selTournament`>, tournsize=3)

Default selection policy function to choose the representatives.

DEFAULT_VERBOSITY = True

Default verbosity for a CentralizedTrainer.