<reponame>aaronlam88/cmpe295<filename>python/archive/demo-MLPClassifier.py
from sklearn.neural_network import MLPClassifier
X = [[0., 0., 0.1], [1., 1., 0.2]]
y = [[0, 1], [1, 1]]
clf = MLPClassifier(solver='lbfgs', alpha=1e-5,
                    hidden_layer_sizes=(15,), random_state=1)

clf.fit(X, y)

clf.predict([[1., 2.]])

clf.predict([[0., 0.]])

from sklearn.neural_network import MLPClassifier
X = [[0., 0., 0.1], [1., 1., 0.2]]
y = [[0, 1], [1, 1]]
clf = MLPClassifier(solver='lbfgs', alpha=1e-5,
                    hidden_layer_sizes=(15,), random_state=1)

clf.fit(X, y)

clf.predict([[1., 2.]])

clf.predict([[0., 0.]])