title: How does sklearn KNeighborsClassifier score method work?
body: <pre><code>knn.score(X_test, y_test)
  </code></pre>
  
  <p>Here <code>X_test</code> is a numpy array that contains test cases and <code>y_test</code> contains their correct labels.</p>
  
  <p>This is the code that returns the reliability score of a model I made to differentiate between species of iris.</p>
  
  <p>How does this function work, does it predict every value from X_test array and then compares it with y_test array and computes the mean?</p>