May 2019
Beginner
528 pages
29h 51m
English
In this section, we continue the digit classification case study. We’ll:
evaluate the k-NN classification estimator’s accuracy,
execute multiple estimators and can compare their results so you can choose the best one(s), and
show how to tune k-NN’s hyperparameter k to get the best performance out of a KNeighborsClassifier.
Once you’ve trained and tested a model, you’ll want to measure its accuracy. Here, we’ll look at two ways of doing this—a classification estimator’s score method and a confusion matrix.
scoreEach estimator has a score method that returns an indication of how well the estimator performs ...
Read now
Unlock full access