import pickle


def predict(dataX):
    """ Predict dependent variable from a features vector """
    # load model
    model = pickle.load(open('model.pickle', 'rb'))
    # predict
    predY = model.predict(dataX.values.reshape(-1, dataX.shape[1]))
    return predY