
Implementation of K-Nearest Neighbor (K-NN) Algorithm For Public Sentiment Analysis of Online Learning
Author(s) -
Auliya Rahman Isnain,
Jepi Supriyanto,
Muhammad Pajar Kharisma
Publication year - 2021
Publication title -
indonesian journal of computing and cybernetics systems
Language(s) - English
Resource type - Journals
eISSN - 2460-7258
pISSN - 1978-1520
DOI - 10.22146/ijccs.65176
Subject(s) - python (programming language) , k nearest neighbors algorithm , computer science , weighting , sentiment analysis , tf–idf , value (mathematics) , artificial intelligence , algorithm , data mining , machine learning , term (time) , medicine , physics , quantum mechanics , radiology , operating system
This research was conducted to apply the KNN (K-Nearest Neighbor) algorithm in conducting sentiment analysis of Twitter users on issues related to government policies regarding Online Learning. Research using Tweet data as much as 1825 Indonesian tweet data data were collected from February 1, 2020 to September 30, 2020. Using the python library, Tweepy. word weighting using TF-IDF, will be classified into two classes of sentiment values, positive and negative. After testing with K of 20, the highest accuracy results were obtained when K = 10 with an accuracy value of 84.65% with a precision of 87%, a recall of 86% f measure 87% and an error rate of 0.12% and a tendency was also obtained. public opinion on online learning tends to be positive.