Esempio n. 1
0
    def predict_proba(self):
        """
        The predict_proba compute the probabilities predicted for each x row defined in add_input.

        Returns
        -------
        pandas.DataFrame
            A dataset with all probabilities of each label if there is no ypred data or a dataset with ypred and the associated probability.

        Example
        --------
        >>> predictor.add_input(x=xtest_df)
        >>> predictor.predict_proba()

        """
        return predict_proba(self.model, self.data["x_preprocessed"], self._classes)
Esempio n. 2
0
 def predict_proba(self):
     """
     The predict_proba compute the proba values for each x_init row
     """
     self.proba_values = predict_proba(self.model, self.x_init, self._classes)