Python - Logistic Regression
Python - Logistic Regression
X_train,X_test,y_train,y_test = train_test_split(iris_X,
iris_y.astype(float),test_size=0.33, random_state=101)
###End code(approx 2 lines)
model = LogisticRegression()
model.fit(X_train, y_train.astype(int))
###Start code
y_pred = model.predict(X_test)
print(classification_report(y_test, y_clf))