rasa/core/training/generator.py
def _subsample_trackers(
        self,
        incoming_trackers: List[TrackerWithCachedStates],
        max_number_of_trackers: int
    ) -> List[TrackerWithCachedStates]:
        """Subsample the list of trackers to retrieve a random subset."""

        # if flows get very long and have a lot of forks we
        # get into trouble by collecting too many trackers
        # hence the sub sampling
        if max_number_of_trackers is not None:
            return utils.subsample_array(incoming_trackers,
                                         max_number_of_trackers,
                                         rand=self.config.rand)
        else:
            return incoming_trackers
Subsample the list of trackers to retrieve a random subset.
Subsample the list of trackers to retrieve a random subset.
Subsample the list of trackers to retrieve a random subset .
def _subsample_trackers(
        self,
        incoming_trackers: List[TrackerWithCachedStates],
        max_number_of_trackers: int
    ) -> List[TrackerWithCachedStates]:
        if max_number_of_trackers is not None:
            return utils.subsample_array(incoming_trackers,
                                         max_number_of_trackers,
                                         rand=self.config.rand)
        else:
            return incoming_trackers
def _subsample_trackers ( self , incoming_trackers : List [ TrackerWithCachedStates ] , max_number_of_trackers : int ) -> List [ TrackerWithCachedStates ] : if max_number_of_trackers is not None : return utils . subsample_array ( incoming_trackers , max_number_of_trackers , rand = self . config . rand ) else : return incoming_trackers
Subsample the list of trackers to retrieve a random subset.
Subsample the list of trackers to retrieve a random subset .
"""Subsample the list of trackers to retrieve a random subset.""" # if flows get very long and have a lot of forks we # get into trouble by collecting too many trackers # hence the sub sampling
self
incoming_trackers
List[TrackerWithCachedStates]
max_number_of_trackers
int