title: How do I find out how LogisticRegression in sklearn classified my test data?
body: <p>I have a simple LogisticRegression model that I am using to classify some training data as below:</p>
  <pre><code>clf = LogisticRegression()
  training_output = clf.fit(x_train, y_train)
  </code></pre>
  <p>Once the model is trained I am using some test data to evaluate its performance:</p>
  <pre><code>score = clf.score(x_test, y_test)
  </code></pre>
  <p>So far so good. I am able to get the score and create confusion matrix.</p>
  <p>But, is there a way for me to get how the model classified the x_test , so I can compare if against y_test row by row?</p>