rasa/core/policies/fallback.py
def fallback_scores(self, domain, fallback_score=1.0):
        """Prediction scores used if a fallback is necessary."""

        result = [0.0] * domain.num_actions
        idx = domain.index_for_action(self.fallback_action_name)
        result[idx] = fallback_score
        return result
Prediction scores used if a fallback is necessary.
Prediction scores used if a fallback is necessary.
Prediction scores used if a fallback is necessary .
def fallback_scores(self, domain, fallback_score=1.0):
        result = [0.0] * domain.num_actions
        idx = domain.index_for_action(self.fallback_action_name)
        result[idx] = fallback_score
        return result
def fallback_scores ( self , domain , fallback_score = 1.0 ) : result = [ 0.0 ] * domain . num_actions idx = domain . index_for_action ( self . fallback_action_name ) result [ idx ] = fallback_score return result
Prediction scores used if a fallback is necessary.
Prediction scores used if a fallback is necessary .
"""Prediction scores used if a fallback is necessary."""
self
domain
fallback_score