Re: [scikit-learn] question about using sklearn.neural_network.MLPClassifier?

2016-11-23 Thread Sebastian Raschka
/stackoverflow.com/questions/36819287/mlp-classifier-of-scikit-neuralnetwork-not-working-for-xor > > > 发件人: scikit-learn > [mailto:scikit-learn-bounces+linjia=ruijie.com...@python.org] 代表 Raghav R V > 发送时间: 2016年11月23日 19:04 > 收件人: Scikit-learn user and developer mailing li

Re: [scikit-learn] question about using sklearn.neural_network.MLPClassifier?

2016-11-23 Thread Raghav R V
Hi, If you keep everything at their default values, it seems to work - ```py from sklearn.neural_network import MLPClassifier X = [[0, 0], [0, 1], [1, 0], [1, 1]] y = [0, 1, 1, 0] clf = MLPClassifier(max_iter=1000) clf.fit(X, y) res = clf.predict([[0, 0], [0, 1], [1, 0], [1, 1]]) print(res) ```

[scikit-learn] question about using sklearn.neural_network.MLPClassifier?

2016-11-23 Thread linjia
Hi everyone I try to use sklearn.neural_network.MLPClassifier to test the XOR operation, but I found the result is not satisfied. The following is code, can you tell me if I use the lib incorrectly? from sklearn.neural_network import MLPClassifier X = [[0, 0], [0, 1], [1, 0], [1, 1]] y =