def predict(self, X, treshold=0.5):
        """
        Assign labels to feature vectors based on the estimator's predictions

        X -- List of feature vectors or a precomputed kernel matrix
        treshold -- The decision treshold between the positive and the negative class
        """
        if not self.estimator_fitted:
            raise Exception('The estimator must be fitted before calling predict(...).')

        return np.array([1. if treshold > p else -1. for p in self.predict_proba(X)])
dataset/ETHPy150Open aldro61/pu-learning/src/puLearning/puAdapter.py/PUAdapter.predict/swapped operands of `>`