title: convergence warning:Stochastic Optimizer: Maximum iterations (200) reached and the optimization hasn't converged yet
body: <p>This is an exercise for using <code>ANN</code>.</p>
  
  <p>I now applying <code>MLPClassifier</code> on training sets below.</p>
  
  <pre><code>D1= {D1+={(6,2), (6,-2), (12,2), (12,-2)}, D1-={(2,0), (0,-2), (0,2), (-2,0)}}
  
  D2= {D2+={(4,2), (4,-2), (-4,2), (-4,-2)}, D2-={(2,1), (2,-1), (-2,1), (-2,-1)}}
  </code></pre>
  
  <p>And using the codes below:</p>
  
  <pre><code>x = [[6,-2],[6,2],[12,-2],[12,2],[2,0],[0,-2],[0,2],[-2,0]]
  
  y = [1,1,1,1,-1,-1,-1,-1]
  
  from sklearn import neural_network
  clf = neural_network.MLPClassifier(solver='adam',alpha=0.0001,hidden_layer_sizes=(5,2), random_state=1, batch_size='auto')
  
  clf.fit(x,y)
  
  predicted = clf.predict([[0,0],[8,3]])
  
  print(predicted)
  </code></pre>
  
  <p>Try to change the classifier but failed cause of the errors below:</p>
  
  <blockquote>
    <p>c:\users\asuspc\appdata\local\programs\python\python36-32\lib\site-packages\sklearn\neural_network\multilayer_perceptron.py:564: ConvergenceWarning: Stochastic Optimizer: Maximum iterations (200) reached and the optimization hasn't converged yet.
          % self.max_iter, ConvergenceWarning)</p>
  </blockquote>
  
  <p>What should I do?</p>