title: Setting exact number of iterations for Logistic regression in python
body: <p>I'm creating a model to perform Logistic regression on a dataset using Python. This is my code:</p>
  
  <pre><code>from sklearn import linear_model
  my_classifier2=linear_model.LogisticRegression(solver='lbfgs',max_iter=10000)
  </code></pre>
  
  <p>Now, according to <a href="https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html" rel="nofollow noreferrer">Sklearn doc page</a>, max_iter is maximum number of iterations taken for the solvers to converge. How do I specifically state that I need 'N' number of iterations ?</p>
  
  <p>Any kind of help would be really appreciated.</p>