notice
This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).
rasa.core.policies.ensemble
PolicyEnsemble Objects
check_domain_ensemble_compatibility
Check for elements that only work with certain policy/domain combinations.
persist
Persists the policy to storage.
load
Loads policy and domain specification from disk.
SimplePolicyEnsemble Objects
Default implementation of a Policy ensemble.
is_not_in_training_data
Checks if the prediction is by a policy which memoized the training data.
Arguments:
policy_name- The name of the policy.max_confidence- The max confidence of the policy's prediction.Returns-Trueif it's aMemoizationPolicy,Falseotherwise.
probabilities_using_best_policy
Predicts the next action the bot should take after seeing the tracker.
Picks the best policy prediction based on probabilities and policy priority.
Triggers fallback if action_listen is predicted after a user utterance.
Arguments:
tracker- the :class:rasa.core.trackers.DialogueStateTrackerdomain- the :class:rasa.shared.core.domain.Domaininterpreter- Interpreter which may be used by the policies to create additional features.
Returns:
The best policy prediction.
InvalidPolicyConfig Objects
Exception that can be raised when policy config is not valid.
