fragile.callbacks.data_tracking
Contents
fragile.callbacks.data_tracking
#
Module Contents#
Classes#
The |
|
The |
|
The |
- class fragile.callbacks.data_tracking.StoreInitAction(swarm=None, param_dict=None, inputs=None, outputs=None)[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.- Parameters
- name = store_init_action#
- default_inputs#
- default_outputs = ['init_actions']#
- property param_dict#
Return the dictionary defining all the data attributes that the component requires.
- Return type
fragile.core.typing.StateDict
- class fragile.callbacks.data_tracking.TrackWalkersId(swarm=None, param_dict=None, inputs=None, outputs=None)[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.- Parameters
- default_inputs#
- default_param_dict#
- class fragile.callbacks.data_tracking.KeepBestN(n_keep, always_update=False, fix_walkers=True, **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 = keep_best_n#
- reset(*args, **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.