notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.8.x).

Version: Master/Unreleased

rasa.graph_components.providers.training_tracker_provider

TrainingTrackerProvider Objects

class TrainingTrackerProvider(GraphComponent)

Provides training trackers to policies based on training stories.

__init__

def __init__(config: Dict[Text, Any]) -> None

Creates provider from config.

get_default_config

@staticmethod
def get_default_config() -> Dict[Text, Any]

Returns default configuration (see parent class for full docstring).

create

@classmethod
def create(cls, config: Dict[Text, Any], model_storage: ModelStorage, resource: Resource, execution_context: ExecutionContext) -> TrainingTrackerProvider

Creates component (see parent class for full docstring).

generate_trackers

def generate_trackers(story_graph: StoryGraph, domain: Domain) -> List[TrackerWithCachedStates]

Generates the training trackers from the training data.

Arguments:

  • story_graph - The story graph containing the test stories and rules.
  • domain - The domain of the model.

Returns:

The trackers which can be used to train dialogue policies.