rasa/core/training/generator.py
def past_states(self, domain: Domain) -> deque:
        """Return the states of the tracker based on the logged events."""

        # we need to make sure this is the same domain, otherwise things will
        # go south. but really, the same tracker shouldn't be used across
        # domains
        assert domain == self.domain

        # if don't have it cached, we use the domain to calculate the states
        # from the events
        if self._states is None:
            self._states = super(TrackerWithCachedStates, self).past_states(
                domain)

        return self._states
Return the states of the tracker based on the logged events.
Return the states of the tracker based on the logged events.
Return the states of the tracker based on the logged events .
def past_states(self, domain: Domain) -> deque:
        assert domain == self.domain
        if self._states is None:
            self._states = super(TrackerWithCachedStates, self).past_states(
                domain)
        return self._states
def past_states ( self , domain : Domain ) -> deque : assert domain == self . domain if self . _states is None : self . _states = super ( TrackerWithCachedStates , self ) . past_states ( domain ) return self . _states
Return the states of the tracker based on the logged events.
Return the states of the tracker based on the logged events .
"""Return the states of the tracker based on the logged events.""" # we need to make sure this is the same domain, otherwise things will # go south. but really, the same tracker shouldn't be used across # domains # if don't have it cached, we use the domain to calculate the states # from the events
self
domain
Domain