October 2018
Intermediate to advanced
172 pages
4h 6m
English
A learning curve is a plot that compares how the training accuracy scores and the test accuracy scores vary as the number of samples/rows added to the data increases. In order to construct the learning curve for the k-nearest neighbors model, we use the following code:
skplt.estimators.plot_learning_curve(knn_classifier, features, target)plt.show()
This results in the following plot:

In the preceding curve, the following applies:
Read now
Unlock full access