This document implements a K-Nearest Neighbors (KNN) classifier on the Haberman's Survival Data Set using scikit-learn. It loads and prepares the data, splits it into training and test sets, trains a KNN classifier with 3 neighbors, evaluates the model's performance using a confusion matrix and classification report, and plots the error rate for different values of K between 1 and 40.
This document implements a K-Nearest Neighbors (KNN) classifier on the Haberman's Survival Data Set using scikit-learn. It loads and prepares the data, splits it into training and test sets, trains a KNN classifier with 3 neighbors, evaluates the model's performance using a confusion matrix and classification report, and plots the error rate for different values of K between 1 and 40.