def train_and_save_model():
    print('TRAINING THE MODEL...')
    (X, y) = load_iris(return_X_y=True)
    classifier = LogisticRegression()
    classifier.fit(X, y)
    print('SAVING THE MODEL...')
    with open(MODEL_FILEPATH, 'wb') as model_file:
        pickle.dump(classifier, model_file)
    return classifier
def train_and_save_model():
    print('TRAINING THE MODEL...')
    (X, y) = load_iris(return_X_y=True)
    classifier = LogisticRegression()
    classifier.fit(X, y)
    print('SAVING THE MODEL...')
    with open(MODEL_FILEPATH, 'wb') as model_file:
        pickle.dump(classifier, model_file)
    return classifier