CSM 4985 Homework 2 - The Nearest Neighbor Algorithm September 18, 2019 1. Use the Black Friday dataset to train a k Nearest Neighbor algorithm classifier to predict the gender of shopper based on other features. (a) Check the features for missing values remove the ones with lots of them. (b) Change the categorical features in to numeric features, remove the ones that are difficult to change. (c) Use 70% of the data for training and 30% for testing. (d) Run KNN for different values of K and report the value that produces the best accuracy. (e) Submit the code, results and markdown description of each step in a Jupyter Notebook to D2L 1
欢迎咨询51作业君