This part of this lab is a review of the K-Nearest Neighbors. It aims to refresh your memory of what you have learned in class.
Please download the notebook by right-clicking and selecting "Save link as" and opening it using using Google Colab. You should see the following if you open the notebook successfully.
People are always striving to make money for a living. The income status of a person can be impactful.
http://archive.ics.uci.edu/ml/datasets/Adult
In this lab, we are going to use
a fraction of the 1994 Census database to build a K-nearest
Neighbors Classifier for predicting whether a person makes over 50k a year.
A couple of lab tasks are given to you to practice your skills in processing data and to build an AI model using KNN. Please download the notebook, the dataset to be used as well as the prediction file for answer checking and open it using Google Colab. You should see the following if you open the notebook successfully.
This is an odd-numbered lab, so there is no need to submit anything. Have fun playing with the notebooks! ;)
from sklearn import metrics
TA_y_pred = pd.read_csv('y_pred.csv', header=None).to_numpy()
This list is incomplete; you can help by expanding it.