Perbandingan Naïve Bayes dan KNN Dalam Klasifikasi Tweet BBM Subsidi

  • Doddy Ircham Pambudi UNISBANK
  • Sulastri Unisbank Semarang

Abstract

The government that is running at this time is also not spared from public comments on Twitter, especially regarding the increase in subsidized fuel. There are at least 4 impacts felt by the community when subsidized fuel prices increase, namely a decrease in people's purchasing power, an increase in basic prices, an increase in the unemployment rate and an increase in the poverty rate. This study aims to implement the Naïve Bayes Classifier and KNN algorithms in classifying a tweet of an increase in subsidized fuel so that it can be identified as belonging to a class with positive or negative sentiments. The data used in this research are 560 tweets. The data is divided into 2, namely 500 training data from tweet data and 60 test data from tweet data stored in xlsx format. The results of the accuracy with the Naïve Bayes Classifier algorithm is 85% while the KN algorithm is 86.8% so it can be concluded that the KNN method is better than the Naïve Bayes Classifier method in classifying tweets of increases in subsidized fuel. Keywords: Subsidized BBM, Naive Bayes, KNN
Published
2023-07-14
How to Cite
[1]
Doddy Ircham Pambudi and Sulastri, “Perbandingan Naïve Bayes dan KNN Dalam Klasifikasi Tweet BBM Subsidi”, ELKOM, vol. 16, no. 1, pp. 35-44, Jul. 2023.