rasa/core/policies/embedding_policy.py
def _action_features_for_Y(self, actions_for_Y: np.ndarray) -> np.ndarray:
        """Prepare Y data for training: features for action labels."""

        return np.stack([np.stack([self.encoded_all_actions[action_idx]
                                   for action_idx in action_ids])
                         for action_ids in actions_for_Y])
Prepare Y data for training: features for action labels.
Prepare Y data for training: features for action labels.
Prepare Y data for training : features for action labels .
def _action_features_for_Y(self, actions_for_Y: np.ndarray) -> np.ndarray:
        return np.stack([np.stack([self.encoded_all_actions[action_idx]
                                   for action_idx in action_ids])
                         for action_ids in actions_for_Y])
def _action_features_for_Y ( self , actions_for_Y : np . ndarray ) -> np . ndarray : return np . stack ( [ np . stack ( [ self . encoded_all_actions [ action_idx ] for action_idx in action_ids ] ) for action_ids in actions_for_Y ] )
Prepare Y data for training: features for action labels.
Prepare Y data for training : features for action labels .
"""Prepare Y data for training: features for action labels."""
self
actions_for_Y
np.ndarray