def decision_function(self, x):
        """
        Compute the decision function for a list of stamp descriptions

        Parameters
        ----------
        x : List of stamp description tuples

        Returns
        -------
        An ndarray of the decision function for each feature extracted
        from x
        """
        result = np.empty(len(x)) * np.nan
        for i, ex in enumerate(x):
            try:
                X, _ = self.make_xy([ex], [])
            except __HOLE__ as e:
                continue

            X = X.reshape(1, -1)
            df = self.classifier.decision_function(X).ravel()
            result[i] = df
        return result
dataset/ETHPy150Open ChrisBeaumont/brut/bubbly/model.py/Model.decision_function