Created
December 22, 2016 14:32
-
-
Save jovianlin/5eca057397144781e54ee18f03a6429d to your computer and use it in GitHub Desktop.
Plot Decision Boundary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Train the logistic rgeression classifier | |
clf = sklearn.linear_model.LogisticRegressionCV() | |
clf.fit(X, y) | |
# Plot the decision boundary | |
plot_decision_boundary(lambda x: clf.predict(x)) | |
plt.title("Logistic Regression") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment