Abstract

Anies Baswedan is a political figure who has been declared as a 2024 presidential candidate. Public opinion is a valuable source of information to analyze sentiment towards Anies Baswedan as a 2024 presidential candidate. Limited human power, emotional instability, and the length of time required are difficulties in analyzing sentiment on large amounts of data manually. Machine learning is utilized to provide convenience in sentiment classification. This research applies the Naïve Bayes Classifier method in the classification of sentiment towards Anies Baswedan as a 2024 presidential candidate. This study aims to determine the performance of the Naïve Bayes Classifier method in the classification of sentiment towards Anies Baswedan as a 2024 presidential candidate. The dataset used was 3,400 which were labeled by crowdsourcing resulting in 2,130 positive (62.65%) and 1,270 negative (37.35%). Tests were conducted using the 10-fold cross-validation and 5-fold cross-validation methods, each consisting of two experimental scenarios, namely using an unbalanced dataset and using a balanced dataset.The Naive Bayes Classifier method produces the best model in the 10-fold cross-validation test with an accuracy of 89.76%, precision of 89.92%, recall of 89.76%, and f1-score of 89.75% on the sixth fold by determining a threshold value of 13 in an experiment using a balanced dataset consisting of 1,270 positives and 1,270 negatives with an average accuracy rate of 79.88%.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.