notice
This is unreleased documentation for Rasa Documentation Main/Unreleased version.
For the latest released documentation, see the latest version (3.x).
Version: Main/Unreleased
rasa.core.evaluation.marker_tracker_loader
strategy_all
def strategy_all(keys: List[Text], count: int) -> Iterable[Text]
Selects all keys from the set of keys.
strategy_first_n
def strategy_first_n(keys: List[Text], count: int) -> Iterable[Text]
Takes the first N keys from the set of keys.
strategy_sample_n
def strategy_sample_n(keys: List[Text], count: int) -> Iterable[Text]
Samples N unique keys from the set of keys.
MarkerTrackerLoader Objects
class MarkerTrackerLoader()
Represents a wrapper over a TrackerStore
with a configurable access pattern.
__init__
def __init__(tracker_store: TrackerStore,
strategy: str,
count: Optional[int] = None,
seed: Any = None) -> None
Creates a MarkerTrackerLoader.
Arguments:
tracker_store
- The underlying tracker store to access.strategy
- The strategy to use for selecting trackers, can be 'all', 'sample_n', or 'first_n'.count
- Number of trackers to return, can only be None if strategy is 'all'.seed
- Optional seed to set up random number generator, only useful if strategy is 'sample_n'.
load
async def load() -> AsyncIterator[Optional[DialogueStateTracker]]
Loads trackers according to strategy.