:py:mod:`fragile.callbacks.root_walker` ======================================= .. py:module:: fragile.callbacks.root_walker Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: fragile.callbacks.root_walker.RootWalker fragile.callbacks.root_walker.BestWalker fragile.callbacks.root_walker.TrackWalker .. py:class:: RootWalker(**kwargs) Bases: :py:obj:`fragile.core.api_classes.Callback` The :class:`Walkers` is a data structure that takes care of all the data involved in making a Swarm evolve. .. py:attribute:: name :annotation: = root .. py:method:: __getattr__(item) .. py:method:: __repr__() Return repr(self). .. py:method:: to_html() .. py:method:: data() :property: .. py:method:: setup(swarm) Prepare the component during the setup phase of the :class:`Swarm`. .. py:method:: reset(root_walker=None, state=None, **kwargs) Reset the internal state of the :class:`SwarmComponent`. :param inplace: Unused. Defaults to True. :type inplace: bool, optional :param root_walker: Set the internal state of the :class:`SwarmComponent` to this value. Defaults to None. :type root_walker: Optional[StateData], optional :param states: Set the internal state of the :class:`SwarmComponent` to this value. Defaults to None. :type states: Optional[StateData], optional :param kwargs: Other parameters required to reset the component. .. py:method:: before_walkers() .. py:method:: update_root() :abstractmethod: .. py:class:: BestWalker(always_update = False, fix_root=True, **kwargs) Bases: :py:obj:`RootWalker` The :class:`Walkers` is a data structure that takes care of all the data involved in making a Swarm evolve. .. py:attribute:: default_inputs .. py:method:: get_best_index() .. py:method:: get_best_walker() .. py:method:: update_root() .. py:method:: fix_root() .. py:method:: after_walkers() .. py:class:: TrackWalker(walker_index=0, **kwargs) Bases: :py:obj:`RootWalker` The :class:`Walkers` is a data structure that takes care of all the data involved in making a Swarm evolve. .. py:attribute:: default_inputs .. py:method:: update_root()