In Scikit-learn, the ____ method is used to calculate the accuracy of the model on the test data.

  • evaluate
  • fit
  • predict
  • score
In Scikit-learn, the score method is used to calculate various metrics, including accuracy, to evaluate the performance of a machine learning model on test data. This method compares the model's predictions to the true labels and returns the accuracy score.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *