Tutorial_08_tasks
QBUS2820 – Predictive Analytics
¶Tutorial 08 Tasks¶
Copyright By PowCoder代写 加微信 powcoder
Spam Email Classification¶
Download the spambase.txt data
Load the data and split into training and test sets (75/25)
Build a KNN classifier. Use cross validation on the training set to estimate the best $k$
Plot the confusion matrix using your final trained model and the test data
Predict whether email 647 is spam or not and print the result
Data description available here http://sci2s.ugr.es/keel/dataset.php?cod=109
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com