rasa_nlu/classifiers/sklearn_intent_classifier.py
def predict(self, X):
        # type: (np.ndarray) -> Tuple[np.ndarray, np.ndarray]
        """Given a bow vector of an input text, predict most probable label.

        Return only the most likely label.

        :param X: bow of input text
        :return: tuple of first, the most probable label and second,
                 its probability."""

        pred_result = self.predict_prob(X)
        # sort the probabilities retrieving the indices of
        # the elements in sorted order
        sorted_indices = np.fliplr(np.argsort(pred_result, axis=1))
        return sorted_indices, pred_result[:, sorted_indices]
Given a bow vector of an input text, predict most probable label.

        Return only the most likely label.

        :param X: bow of input text
        :return: tuple of first, the most probable label and second,
                 its probability.
Given a bow vector of an input text, predict most probable label.
Return only the most likely label.
Given a bow vector of an input text predict most probable label . Return only the most likely label .
def predict(self, X):
        pred_result = self.predict_prob(X)
        sorted_indices = np.fliplr(np.argsort(pred_result, axis=1))
        return sorted_indices, pred_result[:, sorted_indices]
def predict ( self , X ) : pred_result = self . predict_prob ( X ) sorted_indices = np . fliplr ( np . argsort ( pred_result , axis = 1 ) ) return sorted_indices , pred_result [ : , sorted_indices ]
Given a bow vector of an input text, predict most probable label.
Given a bow vector of an input text predict most probable label .
# type: (np.ndarray) -> Tuple[np.ndarray, np.ndarray] """Given a bow vector of an input text, predict most probable label.

        Return only the most likely label.

        :param X: bow of input text
        :return: tuple of first, the most probable label and second,
                 its probability.""" # sort the probabilities retrieving the indices of # the elements in sorted order
tuple of first, the most probable label and second,
its probability.
tuple of first the most probable label and second its probability .
self
X
bow of input text
bow of input text