def do_it_with(data_set):
x_train, x_test, y_train, y_test = acquire_data(data_name=data_set)
y = np.append(y_train, y_test)
model = LogisticRegression()
y_raveled = np.ravel(y_train)
model = model.fit(x_train, y_raveled)
model.score(x_test, np.ravel(y_test))
https://github.com/ttpqc/LogisticRegression/blob/master/MyLogisticRegression.py