Performance analysis of k-Nearest Neighbors classification on Reuters news article datasets
Abstract
The k-Nearest Neighbors (k-NN) algorithm is a fundamental and widely-used classification technique that has found applications in various domains, including text classification. In this paper, we present a comprehensive analysis of the k-NN classification algorithm applied to the Reuters news article dataset. Our study includes the data, implementation k-NN classification with different parameters, performance evaluation, and statistical analysis to draw meaningful conclusions. In a comprehensive analysis of the k-NN classification algorithm used for the Reuters news article data-set. A variety of metrics is used to evaluate the performance of the k-NN algorithm, such as accuracy, precision, recall, and F1 scores. These metrics provide a comprehensive view of how well the algorithm classifies news articles. Our statistical analysis reveals significant performance differences between various k-NN configurations. This can help researchers and practitioners make informed decisions when choosing the best parameters for their specific text classification tasks. In conclusion, our study provides valuable insights into the application of k-NN classification algorithms to textual data, highlighting the importance of parameter tuning and rigorous evaluation. These findings can guide practitioners to effectively use k-NN for text classification tasks and inspire further research in the field.
References
- Zhang, M. L., & Zhou, Z. H. (2007). Ml-knn: a lazy learning approach to multi-label learning. Pattern Recognition, 40(7), 2038-2048.
- Yong, Z., Youwen, L., & Shixiong, X. (2009). An improved knn text classification algorithm based on clustering. Journal of Computers, 4(3).
- Liu, Z., Wang, C., & Wang, F. (2019). An improved knn text classification method. International Journal of Computational Science and Engineering, 20(3), 397.
- Tang, Y., Jing, L., Li, H., & Atkinson, P. M. (2016). A multiple-point spatially weighted k-nn method for object-based classification. International Journal of Applied Earth Observation and Geoinformation, 52, 263-274.
- Tao, Y. B., Lin, H., & Bao, H. J. (2008). Kd-tree based fast ray tracing for rcs prediction. ,81,(2008), 81, 329-341.
- Lawton, G. (2022). Data preprocessing: Definition, key steps and concepts. Data Management. https://www.techtarget.com/searchdatamanagement/definition/data-preprocessing.
- Patil, P. (2022). What is exploratory data analysis? Medium. https://towardsdatascience.com/exploratory-data-analysis-8fc1cb20fd15.
- Christopher, A. (2021). K-Nearest Neighbor. Medium. https://medium.com/swlh/k-nearest-neighbor-ca2593d7a3c4.
- Soucy, P., & Mineau, G. W. (2001). A simple KNN algorithm for text categorization. In Proceedings 2001 IEEE International Conference on Data Mining (pp. 647-648). San Jose, CA, USA. doi: 10.1109/ICDM.2001.989592.
- Chen, J. (no date). Z-test definition: Its uses in statistics simply explained with example. Investopedia. https://www.investopedia.com/terms/z/z-test .