fragile.callbacks.root_walker#

Module Contents#

Classes#

RootWalker

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

BestWalker

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

TrackWalker

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

class fragile.callbacks.root_walker.RootWalker(**kwargs)[source]#

Bases: fragile.core.api_classes.Callback

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

name = root#
__getattr__(item)[source]#
__repr__()[source]#

Return repr(self).

Return type

str

to_html()[source]#
property data#
setup(swarm)[source]#

Prepare the component during the setup phase of the Swarm.

reset(root_walker=None, state=None, **kwargs)[source]#

Reset the internal state of the SwarmComponent.

Parameters
  • inplace (bool, optional) – Unused. Defaults to True.

  • root_walker (Optional[StateData], optional) – Set the internal state of the SwarmComponent to this value. Defaults to None.

  • states (Optional[StateData], optional) – Set the internal state of the SwarmComponent to this value. Defaults to None.

  • kwargs – Other parameters required to reset the component.

before_walkers()[source]#
abstract update_root()[source]#
class fragile.callbacks.root_walker.BestWalker(always_update=False, fix_root=True, **kwargs)[source]#

Bases: RootWalker

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

Parameters

always_update (bool) –

default_inputs#
get_best_index()[source]#
get_best_walker()[source]#
update_root()[source]#
fix_root()[source]#
after_walkers()[source]#
class fragile.callbacks.root_walker.TrackWalker(walker_index=0, **kwargs)[source]#

Bases: RootWalker

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

default_inputs#
update_root()[source]#