{"title":"K-Nearest Neighbor (K-NN) algorithm with Euclidean and Manhattan in classification of student graduation","authors":"N. Hidayati, Arief Hermawan","doi":"10.21831/JEATECH.V2I2.42777","DOIUrl":null,"url":null,"abstract":"K-Nearest Neighbor (K-NN) algorithm is a classification algorithm that has been proven to solve various classification problems. Two approaches that can be used in this algorithm are K-NN with Euclidean and K-NN with Manhattan. The research aims to apply the K-NN algorithm with Euclidean and K-NN with Manhattan to classify the accuracy of graduation. Student graduation is determined by the variables of gender, major, number of first-semester credits, number of second-semester credits, number of third-semester credits, grade point on the first semester, grade point on the second semester, grade point on the third semester, and age. These variables determine the accuracy of student graduation, timely or untimely. The implementation of the K-NN algorithm is carried out using Rapidminer software. The results were obtained after testing 380 training data and 163 testing data. The best accuracy system was achieved at K=7 with a value of 85.28%. The two algorithmic approaches did not affect the accuracy of the results. Furthermore, the addition of the value of K did not completely affect the accuracy.","PeriodicalId":8524,"journal":{"name":"Asian Journal of Engineering and Applied Technology","volume":"47 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2021-08-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"13","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Asian Journal of Engineering and Applied Technology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.21831/JEATECH.V2I2.42777","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 13
Abstract
K-Nearest Neighbor (K-NN) algorithm is a classification algorithm that has been proven to solve various classification problems. Two approaches that can be used in this algorithm are K-NN with Euclidean and K-NN with Manhattan. The research aims to apply the K-NN algorithm with Euclidean and K-NN with Manhattan to classify the accuracy of graduation. Student graduation is determined by the variables of gender, major, number of first-semester credits, number of second-semester credits, number of third-semester credits, grade point on the first semester, grade point on the second semester, grade point on the third semester, and age. These variables determine the accuracy of student graduation, timely or untimely. The implementation of the K-NN algorithm is carried out using Rapidminer software. The results were obtained after testing 380 training data and 163 testing data. The best accuracy system was achieved at K=7 with a value of 85.28%. The two algorithmic approaches did not affect the accuracy of the results. Furthermore, the addition of the value of K did not completely affect the accuracy.
k -最近邻(K-NN)算法是一种被证明可以解决各种分类问题的分类算法。在该算法中可以使用的两种方法是带有欧几里得的K-NN和带有曼哈顿的K-NN。本研究的目的是应用基于欧几里得的K-NN算法和基于曼哈顿的K-NN算法对分度精度进行分类。学生毕业由性别、专业、第一学期学分数、第二学期学分数、第三学期学分数、第一学期绩点、第二学期绩点、第三学期绩点、年龄等变量决定。这些变量决定了学生毕业的准确性,及时或不及时。使用Rapidminer软件实现K-NN算法。对380个训练数据和163个测试数据进行了测试,得到了结果。该系统在K=7时精度最高,为85.28%。这两种算法方法不影响结果的准确性。此外,K值的增加并没有完全影响精度。