Skip to content

Instantly share code, notes, and snippets.

@hadifar
Last active January 5, 2019 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadifar/cae95409acb6a609e4b992c6bab9c68c to your computer and use it in GitHub Desktop.
Save hadifar/cae95409acb6a609e4b992c6bab9c68c to your computer and use it in GitHub Desktop.
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