@staticmethod
def model_predictor(model, X, method):
    """
        prediction method for models, depending on the methods
        :param model:
        :param X:
        :param method:
        :return:
        """
    predictions = None
    if method == 'predict_proba':
        predictions = model.predict_proba(X)[:, (1)]
    if method == 'predict':
        predictions = model.predict(X)
    return predictions
