TY - THES N1 - Muchammad Abrori, S.Si., M.Kom dan Muhammad Rashif Hilmi, S.Si., M.Sc. ID - digilib78701 UR - https://digilib.uin-suka.ac.id/id/eprint/78701/ A1 - Anggit Pratiknyo Widyagiri, NIM.: 22106010075 Y1 - 2026/08/11/ N2 - The performance of ONIC Esports in the M7 Mobile Legends: Bang Bang (MLBB) tournament generated various opinions among TikTok users, making sentiment analysis necessary to classify comments into positive, negative, and neutal categories. This study aims to identify the stages of sentiment classification using the k-Nearest Neighbor (kNN) and Random Forest methods, analyze the sentiment classification result, and compare the performance of both methods. The study used 5,203 Indonesian language comments collected through web scraping. The data were processed through labelling, preprocessing, and Term Frequency-Inverse Document Frequency (TF-IDF) feature extraction before being classified using kNN and Random Forest with Grid Search and 5-Fold Cross Validation. Model performance was evaluated using a confusion matrix, accuracy, precision, recall, and F1-score. The result showed that Random Forest achieved the best performance with an accuracy of 83,18%, while kNN using Euclidean and Manhattan distances achieved accuracies of 79.49% and 64.82%, respectively. Therefore, Random Forest outperformed kNN in classifying TikTok comments related to the performance of ONIC Esports in the M7 MLBB tournament. PB - UIN SUNAN KALIJAGA YOGYAKARTA KW - Analisis Sentimen KW - Tiktok KW - K-Nearest Neighbor KW - Random Forest KW - TF-IDF KW - Mobile Legends: Bang Bang M1 - skripsi TI - PERBANDINGAN METODE K-NEAREST NEIGHBOR (KNN) DAN RANDOM FOREST UNTUK KLASIFIKASI SENTIMEN KOMENTAR DI TIKTOK (STUDI KASUS: PERFORMA ONIC ESPORTS PADA TURNAMEN M7 MOBILE LEGENDS: BANG BANG) AV - restricted EP - 136 ER -