Last active
January 5, 2019 15:58
-
-
Save hadifar/cae95409acb6a609e4b992c6bab9c68c to your computer and use it in GitHub Desktop.
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
iris = datasets.load_iris() | |
X = iris.data[:, :2] | |
Y = iris.target | |
clf = MLPClassifier(solver='lbfgs', hidden_layer_sizes=(10,10)) | |
# Create an instance of Logistic Regression Classifier and fit the data. | |
clf.fit(X, Y) | |
# Prediction phase | |
Z = clf.predict(...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment