rasa/core/policies/ensemble.py
def _check_priorities(self) -> None:
        """Checks for duplicate policy priorities within PolicyEnsemble."""

        priority_dict = defaultdict(list)
        for p in self.policies:
            priority_dict[p.priority].append(type(p).__name__)

        for k, v in priority_dict.items():
            if len(v) > 1:
                logger.warning(("Found policies {} with same priority {} "
                                "in PolicyEnsemble. When personalizing "
                                "priorities, be sure to give all policies "
                                "different priorities. More information: "
                                "https://rasa.com/docs/core/"
                                "policies/").format(v, k))
Checks for duplicate policy priorities within PolicyEnsemble.
Checks for duplicate policy priorities within PolicyEnsemble.
Checks for duplicate policy priorities within PolicyEnsemble .
def _check_priorities(self) -> None:
        priority_dict = defaultdict(list)
        for p in self.policies:
            priority_dict[p.priority].append(type(p).__name__)
        for k, v in priority_dict.items():
            if len(v) > 1:
                logger.warning(("Found policies {} with same priority {} "
                                "in PolicyEnsemble. When personalizing "
                                "priorities, be sure to give all policies "
                                "different priorities. More information: "
                                "https://rasa.com/docs/core/"
                                "policies/").format(v, k))
def _check_priorities ( self ) -> None : priority_dict = defaultdict ( list ) for p in self . policies : priority_dict [ p . priority ] . append ( type ( p ) . __name__ ) for k , v in priority_dict . items ( ) : if len ( v ) > 1 : logger . warning ( ( "Found policies {} with same priority {} " "in PolicyEnsemble. When personalizing " "priorities, be sure to give all policies " "different priorities. More information: " "https://rasa.com/docs/core/" "policies/" ) . format ( v , k ) )
Checks for duplicate policy priorities within PolicyEnsemble.
Checks for duplicate policy priorities within PolicyEnsemble .
"""Checks for duplicate policy priorities within PolicyEnsemble."""
self